make room for the .dpu suffix

master
Jonathan Lamothe 11 years ago
parent 24343d03a2
commit 7402cc563f
  1. 2
      dpu.c

@ -23,7 +23,7 @@ int main (int argc, char **argv){
fputs("I pity the fool who don't have an input file!\n",stderr); fputs("I pity the fool who don't have an input file!\n",stderr);
return EXIT_FAILURE; return EXIT_FAILURE;
} }
if(strlen(argv[arg]) >= FILENAME_MAX) if(strlen(argv[arg]) >= FILENAME_MAX - 4)
{ {
fputs("It's a filename, not a novel.\n", stderr); fputs("It's a filename, not a novel.\n", stderr);
return EXIT_FAILURE; return EXIT_FAILURE;

Loading…
Cancel
Save