diff options
Diffstat (limited to 'src/or/onion.c')
-rw-r--r-- | src/or/onion.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index 8293b27dcb..8dc3efa904 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -164,11 +164,11 @@ static void add_nickname_list_to_smartlist(smartlist_t *sl, char *list) { char nick[MAX_NICKNAME_LEN]; routerinfo_t *router; - while(isspace(*list) || *list==',') list++; + while(isspace((int)*list) || *list==',') list++; start = list; while(*start) { - end=start; while(*end && !isspace(*end) && *end != ',') end++; + end=start; while(*end && !isspace((int)*end) && *end != ',') end++; memcpy(nick,start,end-start); nick[end-start] = 0; /* null terminate it */ router = router_get_by_nickname(nick); @@ -180,7 +180,7 @@ static void add_nickname_list_to_smartlist(smartlist_t *sl, char *list) { } else log_fn(has_fetched_directory ? LOG_WARN : LOG_INFO, "Nickname list includes '%s' which isn't a known router.",nick); - while(isspace(*end) || *end==',') end++; + while(isspace((int)*end) || *end==',') end++; start = end; } } |