mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Use tor_sscanf, not sscanf, in test_util.c.
Fixes the 0.2.7 case of bug #19213, which prevented mingw64 from working.
This commit is contained in:
parent
4165b1a0da
commit
5854b19816
3
changes/bug19213
Normal file
3
changes/bug19213
Normal file
@ -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.
|
@ -4377,7 +4377,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
|
||||
|
Loading…
Reference in New Issue
Block a user