mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-25 12:04:47 +00:00
Fix #1565 - mg_snprintf %.*s with zero len printing
This commit is contained in:
1 parent
b8bba7513a
commit
e2fcf5f92c
3 files changed
+7
-4
No files matched your search
@@ -1329,6 +1329,7 @@ static void test_str(void) {
|
||||
ASSERT(sn("%d", 0));
|
||||
ASSERT(sn("%d", 1));
|
||||
ASSERT(sn("%d", -1));
|
||||
ASSERT(sn("%.*s", 0, "ab"));
|
||||
ASSERT(sn("%.*s", 1, "ab"));
|
||||
ASSERT(sn("%.1s", "ab"));
|
||||
ASSERT(sn("%.99s", "a"));
|
||||
|
||||
Reference in new issue
Block a user