Add a subtlety to 1994/ldb/README.md

I noted this subtlety in the log yesterday but it seems that it should
be noted in the README.md too. As I noted: if a line is greater than 231
in length if the program chooses that line it might print the first 231
characters or it might print (up to) the next 231 characters and so on.
This commit is contained in:
Cody Boone Ferguson committed 2023-04-03 04:50:33 -07:00
1 parent 15a62a83fc
commit 5dea00159c
1 file changed
+4 -2
+4 -2
View File
@@ -16,8 +16,10 @@ void but it was used in a `||` expression. Thus the comma operator was needed.
Cody also changed the entry to use `fgets()` instead of `gets()` to make it
safe for lines greater than 231 in length. Note that this now prints a newline
after the output but this seems like a worthy compromise for making it safer
(fixing it is more problematic than it is worth). Thank you Cody for your
assistance!
(fixing it is more problematic than it is worth). A subtlety about this fix: if
a line is greater than 231 in length if the program chooses that line it might
print the first 231 characters or it might print (up to) the next 231 characters
and so on. Thank you Cody for your assistance!
## To run: