From 9b1d4e7a8330f70392ffc0140455a7d9cfe72c5a Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 13 Jan 2024 09:58:19 -0800 Subject: [PATCH] Format fix thanks file - add missing ` --- thanks-for-help.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thanks-for-help.md b/thanks-for-help.md index d7c522465..5578eec99 100644 --- a/thanks-for-help.md +++ b/thanks-for-help.md @@ -1604,7 +1604,7 @@ loop, reading again if `scanf(3)` did not return 2 (that was not a problem in that `scanf(/2)` will not return until the number of specifiers have been processed or some error occurs) or a function it called returned non-zero. -Instead the fix involves the `scanf(3)` specifiers being `"%4s %4s" on two +Instead the fix involves the `scanf(3)` specifiers being `"%4s %4s"` on two new char arrays (always cleared in the beginning of the loop) and then using `strtol(3)` with a base of `8` (as it's octal), checking for `< 0 || > 077` on both numbers (using `"%o %o"` does not solve the problem). @@ -1650,7 +1650,7 @@ Cody also added an arg check because the program and the [nuked](https://en.wikipedia.org/wiki/Nuclear_weapon) the [entire world](https://en.wikipedia.org/wiki/Earth) or just the [USA](https://en.wikipedia.org/wiki/United_States), respectively, without enough -args (/2). And not that we need the help or anything for this :-) but we +args (2). And not that we need the help or anything for this :-) but we encourage you to try the original without two args :-)