Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Oct 16, 2022
1 parent 07dd561 commit aa34195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmport/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa34195

Please sign in to comment.