diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2006-01-26 23:57:57 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2006-01-26 23:57:57 +0000 |
commit | 31604c108ede450d77dcce356a82724ef4b2d004 (patch) | |
tree | df9eb722e9236ba924b1af2001f18a809c54d895 /lib/backup-files.c | |
parent | 313a154bba3030fc29d57a669753f4a50b720cc6 (diff) | |
download | quilt-31604c108ede450d77dcce356a82724ef4b2d004.tar.gz |
- Change the default PATH_MAX from 4095 to 4096.
- sizeof(char) == 1.
Diffstat (limited to 'lib/backup-files.c')
-rw-r--r-- | lib/backup-files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backup-files.c b/lib/backup-files.c index ea20a5b..a551ac3 100644 --- a/lib/backup-files.c +++ b/lib/backup-files.c @@ -47,7 +47,7 @@ #endif #ifndef PATH_MAX -# define PATH_MAX 4095 +# define PATH_MAX 4096 #endif const char *progname; @@ -384,7 +384,7 @@ foreachdir_rec(const char *path, struct stat *st, DIR *dir; struct dirent *dp; int failed = 0; - char *p = malloc_nofail(sizeof(char) * (PATH_MAX + 1)); + char *p = malloc_nofail(PATH_MAX + 1); if (access(path, R_OK|X_OK) || !(dir = opendir(path))) return walk(path, NULL); |