diff options
Diffstat (limited to 'trunk/src/wrap-file.c')
-rw-r--r-- | trunk/src/wrap-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trunk/src/wrap-file.c b/trunk/src/wrap-file.c index 6b0c3f1..6218f41 100644 --- a/trunk/src/wrap-file.c +++ b/trunk/src/wrap-file.c @@ -334,7 +334,7 @@ wrap_stat_body (const char *file, struct stat64 *buf, int lstat) return -1; len = strlen (file_copy); - if (len && file_copy[len - 1] == '/' || file_copy[len - 1] == '\\')) + if (len && (file_copy[len - 1] == '/' || file_copy[len - 1] == '\\')) file_copy[len - 1] = '\0'; ret = lstat ? lstat64 (file_copy, buf) : stat64 (file_copy, buf); |