Skip to content

Commit 40cbc00

Browse files
authored
Update dollarskip.c
1 parent d5da530 commit 40cbc00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dollarskip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ char *collect_args(int argc, char **argv, size_t *argv_size) {
2323

2424
// get the size of all of argv + a space after each argument (last one for the null terminator)
2525
for(int i = 1; i < argc; ++i) {
26-
argv_len += strlen(argv[i]) + 1; // 1 for the space and nul character at the end
26+
argv_len += strlen(argv[i]) + 1; // 1 for the space and null terminator at the end
2727
}
2828
// if argv_size isn't NULL, dereference it and put argv_len in it.
2929
if(argv_size != NULL) *argv_size = argv_len;

0 commit comments

Comments
 (0)