summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/scramble.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/scramble.c b/tools/scramble.c
index ca3fd3bb35..ed972f7768 100644
--- a/tools/scramble.c
+++ b/tools/scramble.c
@@ -333,7 +333,8 @@ int main (int argc, char** argv)
333 return 2; 333 return 2;
334 } 334 }
335 /* we store a 4-letter model name too, for humans */ 335 /* we store a 4-letter model name too, for humans */
336 strcpy(modelname, &argv[1][5]); 336 strncpy(modelname, &argv[1][5],4);
337 modelname[4] = '\0'; /* to be sure we are null terminated */
337 chksum = modelnum; /* start checksum calcs with this */ 338 chksum = modelnum; /* start checksum calcs with this */
338 } 339 }
339 340