summaryrefslogtreecommitdiff
path: root/cpio/cpio_windows.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg.sonnenberger@gmail.com>2009-03-08 14:18:36 -0400
committerJoerg Sonnenberger <joerg.sonnenberger@gmail.com>2009-03-08 14:18:36 -0400
commit411e8f16860964222d412ecd9e56e8c7ee82f41c (patch)
treef2069a5fd9c4525062d93e18848a0b461dbbbd68 /cpio/cpio_windows.c
parentdf3342602e7a5108fe636a2ad9b17df4c7468e8b (diff)
downloadlibarchive-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.c4
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;