diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-03 12:00:30 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-03 12:01:24 -0500 |
commit | 9a79e796de82c0f91288bdd57c9953e4ff8eb06f (patch) | |
tree | 96dc76224d4fc86c6dfbc9366b63edcd80902ef8 /tests | |
parent | 3700ece5ebe8d136c3f70c0f4c49745a6055470c (diff) |
sscanf fix and test fix
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core/test_sscanf.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/core/test_sscanf.in b/tests/core/test_sscanf.in index d5289fe5..55a310c5 100644 --- a/tests/core/test_sscanf.in +++ b/tests/core/test_sscanf.in @@ -64,6 +64,7 @@ int main() { } char buf1[100], buf2[100], buf3[100], buf4[100]; + memset(buf4, 0, 100); int numItems = sscanf("level=4:ref=3", "%255[^:=]=%255[^:]:%255[^=]=%255c", buf1, buf2, buf3, buf4); |