diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-12-19 16:51:53 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-01-16 22:29:39 -0500 |
commit | b7cf7bd9ae31aeddd03ad2094dd480d2b1d34d4f (patch) | |
tree | 86b0e53db9405747d9e4cc1a0866db9ff9c194c6 /src/or/routerparse.c | |
parent | 65b90edbe4f456ee59c163e72bc75e522c4e9288 (diff) | |
download | tor-b7cf7bd9ae31aeddd03ad2094dd480d2b1d34d4f.tar.gz tor-b7cf7bd9ae31aeddd03ad2094dd480d2b1d34d4f.zip |
Fix an instance of snprintf; don't use _snprintf directly
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 1aee4e5332..48744d6994 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -3828,7 +3828,7 @@ get_next_token(memarea_t *area, if ((size_t)(eol-next) != 9+obname_len+5 || strcmp_len(next+9, tok->object_type, obname_len) || strcmp_len(eol-5, "-----", 5)) { - snprintf(ebuf, sizeof(ebuf), "Malformed object: mismatched end tag %s", + tor_snprintf(ebuf, sizeof(ebuf), "Malformed object: mismatched end tag %s", tok->object_type); ebuf[sizeof(ebuf)-1] = '\0'; RET_ERR(ebuf); |