diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-07-01 11:26:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-01 11:26:30 -0400 |
commit | a0ae80788cc12284cd63ac678318f95e1238b257 (patch) | |
tree | aaaf0e1b3076a272903a2bc2ae045041aff28c7e /src/or/geoip.c | |
parent | da62af6f6b369592609d2da43b82abde0bbccfac (diff) | |
download | tor-a0ae80788cc12284cd63ac678318f95e1238b257.tar.gz tor-a0ae80788cc12284cd63ac678318f95e1238b257.zip |
Replace 4 more sscanf()s with tor_sscanf()
For some inexplicable reason, Coverity departs from its usual
standards of avoiding false positives here, and warns about all
sscanf usage, even when the formatting strings are totally safe.
Addresses CID # 447, 446.
Diffstat (limited to 'src/or/geoip.c')
-rw-r--r-- | src/or/geoip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/geoip.c b/src/or/geoip.c index 59490bdaf8..62c7a5c394 100644 --- a/src/or/geoip.c +++ b/src/or/geoip.c @@ -116,10 +116,10 @@ geoip_parse_entry(const char *line) ++line; if (*line == '#') return 0; - if (sscanf(line,"%u,%u,%2s", &low, &high, b) == 3) { + if (tor_sscanf(line,"%u,%u,%2s", &low, &high, b) == 3) { geoip_add_entry(low, high, b); return 0; - } else if (sscanf(line,"\"%u\",\"%u\",\"%2s\",", &low, &high, b) == 3) { + } else if (tor_sscanf(line,"\"%u\",\"%u\",\"%2s\",", &low, &high, b) == 3) { geoip_add_entry(low, high, b); return 0; } else { |