summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-12-16 19:39:37 -0800
committerOri Bernstein <ori@eigenstate.org>2018-12-16 19:39:37 -0800
commit18fcdbd2c79ac962b96759bb79c8ce5de31bc1d3 (patch)
tree8ac70c72cdb5251e4e7f83f4c5f6b98b743a7ab3 /6
parent261918774d46c50c96f729f4e92b01323c56c398 (diff)
downloadmc-18fcdbd2c79ac962b96759bb79c8ce5de31bc1d3.tar.gz
fix missized copy.
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;