chg: [pibs] force null byte for filename
parent
459102f9b1
commit
2e4d1eef26
|
@ -75,6 +75,7 @@ int main(int argc, char* argv[])
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
strncpy(pibs->filename, optarg, FILENAME_MAX);
|
strncpy(pibs->filename, optarg, FILENAME_MAX);
|
||||||
|
pibs->filename[FILENAME_MAX-1] = '\0';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue