aboutsummaryrefslogtreecommitdiffstats
path: root/exclude.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-08-05 22:58:17 +0000
committerWayne Davison <wayned@samba.org>2004-08-05 22:58:17 +0000
commit7cd72c79ec1c7f803ca6859f53cf8d9a78d6abf2 (patch)
tree6efcc74a1960f88f79c9817bd25e4ae7959e5ba8 /exclude.c
parent84a6379565735489e641877775cb00f592605eb0 (diff)
downloadandroid_external_rsync-7cd72c79ec1c7f803ca6859f53cf8d9a78d6abf2.tar.gz
android_external_rsync-7cd72c79ec1c7f803ca6859f53cf8d9a78d6abf2.tar.bz2
android_external_rsync-7cd72c79ec1c7f803ca6859f53cf8d9a78d6abf2.zip
Set "eob" correctly in add_exclude_file().
Diffstat (limited to 'exclude.c')
-rw-r--r--exclude.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exclude.c b/exclude.c
index 8dab79fe..d02c462c 100644
--- a/exclude.c
+++ b/exclude.c
@@ -322,7 +322,7 @@ void add_exclude_file(struct exclude_list_struct *listp, const char *fname,
{
FILE *fp;
char line[MAXPATHLEN+3]; /* Room for "x " prefix and trailing slash. */
- char *eob = line + MAXPATHLEN - 1;
+ char *eob = line + sizeof line - 1;
int word_split = xflags & XFLG_WORD_SPLIT;
if (!fname || !*fname)