more: Don't printf(string), printf("%s", string)!

Found by PVS-Studio.
This commit is contained in:
Andreas Kling 2019-08-01 11:39:41 +02:00
commit 4271bebbef
Notes: sideshowbarker 2024-07-19 12:57:39 +09:00

View file

@ -34,7 +34,7 @@ int main(int argc, char** argv)
auto* str = fgets(buffer, sizeof(buffer), stdin);
if (!str)
break;
printf(str);
printf("%s", str);
++lines_printed;
if ((lines_printed % (ws.ws_row - 1)) == 0) {
wait_for_key();