aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-01-25 04:36:13 +0000
committerYang Tse <yangsita@gmail.com>2010-01-25 04:36:13 +0000
commit4bb80cfd75d41edbd0fc352c561d102e16d13201 (patch)
tree869465087ff08393e9093408a2c1bb046f04ec32 /src
parentde2cc11a739a3bf599c2542f6d770ccedd0ebe3c (diff)
fix compiler warning
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a810ec78a..381f81097 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4134,7 +4134,7 @@ header_callback(void *ptr, size_t size, size_t nmemb, void *stream)
while (1) {
char *filename;
- while (p < end && !isalpha(*p))
+ while (*p && (p < end) && !ISALPHA(*p))
p++;
if (p > end-9)
break;