diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-06-02 10:13:35 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-06-02 10:13:35 -0400 |
commit | b458a81cc501fb56d72f3312b8b407f9be323e9b (patch) | |
tree | fdaf286ab26d2b49da5242a8cdf76d5ffed57312 | |
parent | 3cdc8bfa2c995b3b381e462128c0408e0ae5b3af (diff) | |
parent | a32ca313c4bc67d56af5f345fa0129b50c006b12 (diff) | |
download | tor-b458a81cc501fb56d72f3312b8b407f9be323e9b.tar.gz tor-b458a81cc501fb56d72f3312b8b407f9be323e9b.zip |
Merge branch 'maint-0.2.8'
-rw-r--r-- | changes/bug19213 | 3 | ||||
-rw-r--r-- | src/test/test_util.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/changes/bug19213 b/changes/bug19213 new file mode 100644 index 0000000000..f912ffb0c3 --- /dev/null +++ b/changes/bug19213 @@ -0,0 +1,3 @@ + o Minor bugfixes (compilation): + - Cause the unit tests to compile correctly on mingw64 versions + that lack sscanf. Fixes bug 19213. Bugfix on 0.2.7.1-alpha. diff --git a/src/test/test_util.c b/src/test/test_util.c index 2726c31fe8..c3c6035ba4 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -4664,7 +4664,7 @@ test_util_writepid(void *arg) contents = read_file_to_str(fname, 0, NULL); tt_assert(contents); - int n = sscanf(contents, "%lu\n%c", &pid, &c); + int n = tor_sscanf(contents, "%lu\n%c", &pid, &c); tt_int_op(n, OP_EQ, 1); #ifdef _WIN32 |