From 34aa616d41ad3a1b099d094a98b82b3505c735ed Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 9 Jan 2008 11:51:44 -0800 Subject: [PATCH] Fixed a length problem parsing an arg of "./". --- flist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flist.c b/flist.c index 960e6a11..81fa2de6 100644 --- a/flist.c +++ b/flist.c @@ -1830,7 +1830,7 @@ struct file_list *send_file_list(int f, int argc, char *argv[]) } else if (!len || fbuf[len - 1] == '/') { if (len == 2 && fbuf[0] == '.') { /* Turn "./" into just "." rather than "./." */ - fbuf[1] = '\0'; + fbuf[--len] = '\0'; } else { if (len + 1 >= MAXPATHLEN) overflow_exit("send_file_list"); -- 2.34.1