diff options
-rw-r--r-- | memcache/apr_memcache.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/memcache/apr_memcache.c b/memcache/apr_memcache.c index 10030566..e18f5e9d 100644 --- a/memcache/apr_memcache.c +++ b/memcache/apr_memcache.c @@ -752,16 +752,18 @@ apr_memcache_getp(apr_memcache_t *mc, apr_size_t len = 0; start = conn->buffer; - flags = apr_strtok(conn->buffer," ",&last); - flags = apr_strtok(NULL," ",&last); - flags = apr_strtok(NULL," ",&last); + flags = apr_strtok(conn->buffer, " ", &last); + flags = apr_strtok(NULL, " ", &last); + flags = apr_strtok(NULL, " ", &last); - if (flags_) + if (flags_) { *flags_ = atoi(flags); + } - length = apr_strtok(NULL," ",&last); - if (lenth) + length = apr_strtok(NULL, " ", &last); + if (lenth) { len = atoi(length); + } if (len < 0) { *new_length = 0; |