diff options
author | Joerg Sonnenberger <joerg.sonnenberger@gmail.com> | 2009-03-08 14:18:36 -0400 |
---|---|---|
committer | Joerg Sonnenberger <joerg.sonnenberger@gmail.com> | 2009-03-08 14:18:36 -0400 |
commit | 411e8f16860964222d412ecd9e56e8c7ee82f41c (patch) | |
tree | f2069a5fd9c4525062d93e18848a0b461dbbbd68 /cpio/cpio_windows.c | |
parent | df3342602e7a5108fe636a2ad9b17df4c7468e8b (diff) | |
download | libarchive-411e8f16860964222d412ecd9e56e8c7ee82f41c.tar.gz |
Be pedantic about argument range for ctype macros.
SVN-Revision: 750
Diffstat (limited to 'cpio/cpio_windows.c')
-rw-r--r-- | cpio/cpio_windows.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpio/cpio_windows.c b/cpio/cpio_windows.c index 60566fbc..69ed7f87 100644 --- a/cpio/cpio_windows.c +++ b/cpio/cpio_windows.c @@ -317,8 +317,8 @@ __link(const char *src, const char *dst, int sym) wchar_t *wnewsrc, *slash; int i, n, slen, wlen; - if (strlen(src) >= 3 && isalpha(src[0]) && src[1] == ':' - && src[2] == '\\') { + if (strlen(src) >= 3 && isalpha((unsigned char )src[0]) && + src[1] == ':' && src[2] == '\\') { /* Original src name is already full-path */ retval = -1; goto exit; |