From 7402cc563f547b4ec1714271dbd96853582e03a2 Mon Sep 17 00:00:00 2001 From: Jonathan Lamothe Date: Sun, 25 Aug 2013 20:00:14 -0400 Subject: [PATCH] make room for the .dpu suffix --- dpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpu.c b/dpu.c index 63ae680..38dfea0 100755 --- a/dpu.c +++ b/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); 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); return EXIT_FAILURE;