1 // commit: ef5507867b59d19f21437970e87b5d0415c07b2e 2013-06-22
2 // scanf should not append null byte after scanning %c
8 char dst
[] = { 'a', 'a' };
9 char src
[] = { 'b', 'b' };
11 if (sscanf(src
, "%c", dst
) != 1)
12 t_error("sscanf %%c failed\n");
14 t_error("scanf clobbered the char buffer for %%c conversion\n");