X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/1f4789fe53888e9ce01ab303fc10f6c19438ecc5..refs/pull/910/head:/client/cmdhflist.c diff --git a/client/cmdhflist.c b/client/cmdhflist.c index c7e3dab8..4bca17a7 100644 --- a/client/cmdhflist.c +++ b/client/cmdhflist.c @@ -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); }