diff options
author | Wayne Davison <wayned@samba.org> | 2008-01-09 11:51:44 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2008-01-09 11:51:44 -0800 |
commit | 34aa616d41ad3a1b099d094a98b82b3505c735ed (patch) | |
tree | 0c70e6d12b1d48eb9aaf4fe9afeaa5729febdfe1 /flist.c | |
parent | ec8637f3679b891041c798400774141024e24a4e (diff) | |
download | rsync-34aa616d41ad3a1b099d094a98b82b3505c735ed.tar.gz |
Fixed a length problem parsing an arg of "./".
Diffstat (limited to 'flist.c')
-rw-r--r-- | flist.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |