aboutsummaryrefslogtreecommitdiff
path: root/jffsX-utils
diff options
context:
space:
mode:
Diffstat (limited to 'jffsX-utils')
-rw-r--r--jffsX-utils/jffs2dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/jffsX-utils/jffs2dump.c b/jffsX-utils/jffs2dump.c
index ad7a9e3..d30b59f 100644
--- a/jffsX-utils/jffs2dump.c
+++ b/jffsX-utils/jffs2dump.c
@@ -149,7 +149,8 @@ static void process_options (int argc, char *argv[])
break;
case 'e':
convertendian = 1;
- strcpy (cnvfile, optarg);
+ strncpy (cnvfile, optarg, sizeof(cnvfile) - 1);
+ cnvfile[sizeof(cnvfile) - 1] = '\0';
break;
case 'r':
recalccrc = 1;