diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-09-06 10:35:40 +0200 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-09-09 22:54:25 +0100 |
commit | 325263f0e8f300b1b85b8061a54eba11f7df48c6 (patch) | |
tree | 5f0a537af11bae3245f67b45abd9d2ac87f5e20a /Userland/Libraries/LibC/regex.h | |
parent | 875ca2fb688ab2d1503020d7526163294fcbf8c2 (diff) | |
download | serenity-325263f0e8f300b1b85b8061a54eba11f7df48c6.zip |
LibC: Consume all whitespace in `scanf` if present in format
We were consuming all whitespace from the format, but not the input
lexer - that was left to the actual format parsing code. It so happened
that we did not account for whitespace with the conversion specifier
'[', causing whitespace to end up in the output variables.
Fix this by always consuming all whitespace and removing the whitespace
logic from the conversion code.
Diffstat (limited to 'Userland/Libraries/LibC/regex.h')
0 files changed, 0 insertions, 0 deletions