chg: [pibs] force null byte for filename

master
Gerard Wagener 2019-07-15 22:39:18 +02:00
parent 459102f9b1
commit 2e4d1eef26
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ int main(int argc, char* argv[])
break;
case 'r':
strncpy(pibs->filename, optarg, FILENAME_MAX);
pibs->filename[FILENAME_MAX-1] = '\0';
break;
}
}