From 5efaffe0f979593bf08bd11e8ce11c36859dcbe3 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Wed, 23 Dec 2020 08:25:44 -0700
Subject: [PATCH] Ensure that nul test is passed after last commit and failed
 before

---
 tests/stdio/scanf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/stdio/scanf.c b/tests/stdio/scanf.c
index f2fc6267..0bf195b3 100644
--- a/tests/stdio/scanf.c
+++ b/tests/stdio/scanf.c
@@ -61,7 +61,7 @@ int main(void) {
     memset(pathbuf, 97, 100);
 
     int ret = sscanf(
-        "https://redox-os.org", "%15[^\n/:]:%3[/]%[^\n/?#]%[^\n]",
+        "https://redox-os.org\0# extra garbage for nul test", "%15[^\n/:]:%3[/]%[^\n/?#]%[^\n]",
         &protobuf, &slashbuf, &hostbuf, &pathbuf
     );
     if (ret < 4) {
-- 
GitLab