mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:17:35 +00:00
more: Don't printf(string), printf("%s", string)!
Found by PVS-Studio.
This commit is contained in:
parent
cbfa211988
commit
4271bebbef
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ int main(int argc, char** argv)
|
||||||
auto* str = fgets(buffer, sizeof(buffer), stdin);
|
auto* str = fgets(buffer, sizeof(buffer), stdin);
|
||||||
if (!str)
|
if (!str)
|
||||||
break;
|
break;
|
||||||
printf(str);
|
printf("%s", str);
|
||||||
++lines_printed;
|
++lines_printed;
|
||||||
if ((lines_printed % (ws.ws_row - 1)) == 0) {
|
if ((lines_printed % (ws.ws_row - 1)) == 0) {
|
||||||
wait_for_key();
|
wait_for_key();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue