aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-06-02 10:16:15 -0400
committerNick Mathewson <nickm@torproject.org>2016-06-02 10:16:15 -0400
commited0ecd9f13b69d49a8da8a9025146f6049829548 (patch)
tree0af644e33b6e7d11929050692abea3549ade8913 /src/test/test_crypto.c
parentb458a81cc501fb56d72f3312b8b407f9be323e9b (diff)
downloadtor-ed0ecd9f13b69d49a8da8a9025146f6049829548.tar.gz
tor-ed0ecd9f13b69d49a8da8a9025146f6049829548.zip
Use tor_sscanf, not sscanf, in test_crypto.c
Fixes the 0.2.9 instance of bug #19213, which prevented mingw64 from working. This case wasn't in any released Tor.
Diffstat (limited to 'src/test/test_crypto.c')
-rw-r--r--src/test/test_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c
index e6b250a677..c128333c20 100644
--- a/src/test/test_crypto.c
+++ b/src/test/test_crypto.c
@@ -162,7 +162,7 @@ test_crypto_openssl_version(void *arg)
tt_assert(!strcmpstart(version, h_version)); /* "-fips" suffix, etc */
tt_assert(!strstr(version, "OpenSSL"));
int a=-1,b=-1,c=-1;
- sscanf(version, "%d.%d.%d", &a,&b,&c);
+ tor_sscanf(version, "%d.%d.%d", &a,&b,&c);
tt_int_op(a, OP_GE, 0);
tt_int_op(b, OP_GE, 0);
tt_int_op(c, OP_GE, 0);