From aa34195e729b49fb6914a3f1e5a5efc09a415ff2 Mon Sep 17 00:00:00 2001 From: Lucas Holt Date: Sun, 16 Oct 2022 10:52:13 -0400 Subject: [PATCH] typo --- libmport/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmport/util.c b/libmport/util.c index 25a80af..dc080b4 100644 --- a/libmport/util.c +++ b/libmport/util.c @@ -469,7 +469,7 @@ mport_run_asset_exec(mportInstance *mport, const char *fmt, const char *cwd, con max -= l; break; case 'B': - lfcpy = malloc(strlen(last_file) * size_of(char)); + lfcpy = malloc(strlen(last_file) * sizeof(char)); name = dirname(lfcpy); /* dirname(3) in MidnightBSD 3.0 and higher modifies the source. */ (void) strlcpy(pos, name, max); l = strlen(name);