[libc][obvious] fix tests using wrong size for string
authorMichael Jones <michaelrj@google.com>
Mon, 7 Nov 2022 22:02:32 +0000 (14:02 -0800)
committerMichael Jones <michaelrj@google.com>
Mon, 7 Nov 2022 22:04:39 +0000 (14:04 -0800)
commit430ca14af835a4d8ea927ed6550a99242bebf255
tree81a8aa7bbd1d90df5f2cca82916b98183f7686e0
parent86674f66cc78a1a121d43fe51f076cbfa8710b1a
[libc][obvious] fix tests using wrong size for string

In the code
const char *str = "abc"
if you do sizeof(str) you get the size of the pointer, not the string.
This patch fixes that mistake.

Differential Revision: https://reviews.llvm.org/D137586
libc/test/src/stdio/scanf_core/string_reader_test.cpp