diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-05-19 08:54:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-19 08:54:56 -0400 |
commit | ff1af5550ab4b6ba83a058e79e99ee2f88081b59 (patch) | |
tree | 017099b0d31287033c935b0922435e1ca213bae0 /src/common | |
parent | 69ef94820b29500d93a8f2775764b8b96284bacb (diff) | |
download | tor-ff1af5550ab4b6ba83a058e79e99ee2f88081b59.tar.gz tor-ff1af5550ab4b6ba83a058e79e99ee2f88081b59.zip |
strlen() returns size_t
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c index 5c455585e7..4babc4adcc 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -3051,7 +3051,7 @@ unescape_string(const char *s, char **result, size_t *size_out) char * get_unquoted_path(const char *path) { - int len = strlen(path); + size_t len = strlen(path); if (len == 0) { return tor_strdup(""); @@ -3065,7 +3065,7 @@ get_unquoted_path(const char *path) char *unquoted_path = tor_malloc(len - has_start_quote - has_end_quote + 1); char *s = unquoted_path; - int i; + size_t i; for (i = has_start_quote; i < len - has_end_quote; i++) { if (path[i] == '\"' && (i > 0 && path[i-1] == '\\')) { *(s-1) = path[i]; |