]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhflist.c
Fix some printf/scanf format strings
[proxmark3-svn] / client / cmdhflist.c
index c7e3dab8587992f0b2990eeca5456038aa7e5606..4bca17a778c80bb59775fed3dff58ea203802bc6 100644 (file)
@@ -1119,11 +1119,11 @@ int CmdHFList(const char *Cmd) {
                prev_EOT = &previous_EOT;
        }
        
-       char load_filename[FILE_PATH_SIZE] = {0};
+       char load_filename[FILE_PATH_SIZE+1] = {0};
        if (loadFromFile) {
                strncpy(load_filename, arg_get_str(5)->sval[0], FILE_PATH_SIZE);
        }
-       char save_filename[FILE_PATH_SIZE] = {0};
+       char save_filename[FILE_PATH_SIZE+1] = {0};
        if (saveToFile) {
                strncpy(save_filename, arg_get_str(6)->sval[0], FILE_PATH_SIZE);
        }
Impressum, Datenschutz