From 5fbb8f9c6adfddae3c4761e3e49165a7be865fc8 Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 9 Sep 2020 08:24:20 +0100 Subject: [PATCH] LibC: Add FIXME for vsscanf --- Libraries/LibC/scanf.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/LibC/scanf.cpp b/Libraries/LibC/scanf.cpp index a1e162f886..550240fa23 100644 --- a/Libraries/LibC/scanf.cpp +++ b/Libraries/LibC/scanf.cpp @@ -132,6 +132,9 @@ int vsscanf(const char* buf, const char* s, va_list ap) int count = 0; int width = 0; + // FIXME: This doesn't work quite right. For example, it fails to match 'SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.1\r\n' + // with 'SSH-%d.%d-%[^\n]\n' + while (*s && *buf) { while (isspace(*s)) s++;