소스 검색

Ensure that nul test is passed after last commit and failed before

Jeremy Soller 4 년 전
부모
커밋
5efaffe0f9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tests/stdio/scanf.c

+ 1 - 1
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) {