Skip to content
This repository was archived by the owner on Oct 1, 2022. It is now read-only.

Commit 6e14a27

Browse files
committed
Small fix: should be argv[0] not argv[1]
1 parent 5bf2c57 commit 6e14a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

memory_filler.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const char *strings[] = {
1414

1515
int main(int argc, char *argv[]) {
1616
if (argc != 2) {
17-
printf("Usage: %s <gigabytes to fill>\n", argv[1]);
17+
printf("Usage: %s <gigabytes to fill>\n", argv[0]);
1818
return 0;
1919
}
2020

0 commit comments

Comments
 (0)