diff options
author | Luke <luke.wilde@live.co.uk> | 2020-09-09 08:24:20 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-27 01:02:11 +0200 |
commit | 5fbb8f9c6adfddae3c4761e3e49165a7be865fc8 (patch) | |
tree | ce475139d8bacd264dd788efb83a7a0439961933 /Libraries/LibC/scanf.cpp | |
parent | 7a558d16b08ffca477e29be9b0cafba084dff681 (diff) | |
download | serenity-5fbb8f9c6adfddae3c4761e3e49165a7be865fc8.zip |
LibC: Add FIXME for vsscanf
Diffstat (limited to 'Libraries/LibC/scanf.cpp')
-rw-r--r-- | Libraries/LibC/scanf.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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++; |