From d04631019bff29611b3be462de633e21d67854fa Mon Sep 17 00:00:00 2001 From: dtkerns Date: Fri, 22 Nov 2024 07:40:03 -0700 Subject: [PATCH] increase buffer length check --- cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds.c b/cmds.c index 923f424..53ac0c1 100644 --- a/cmds.c +++ b/cmds.c @@ -2991,7 +2991,7 @@ readfile(char *fname, int eraseflg) return 0; } *save = '|'; - if ((strlen(save) + strlen(fname) + 2) > PATHLEN) { + if ((strlen(save) + strlen(fname) + 4) > PATHLEN) { error("Path too long"); return 0; }