summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
Diffstat (limited to '6')
-rw-r--r--6/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/main.c b/6/main.c
index 8e1f299..3034277 100644
--- a/6/main.c
+++ b/6/main.c
@@ -92,7 +92,7 @@ assemble(char *asmsrc, char *path)
int pid, status;
if (outfile != NULL)
- strncpy(objfile, outfile, 1024);
+ strncpy(objfile, outfile, sizeof(objfile));
else {
psuffix = strrchr(path, '+');
i = 0;