Fossil SCM

Minor doc fix for previous commit. No code changes.

stephan 2021-08-05 17:06 trunk
Commit 04a9e74a93e21638ec545e5b5cc931bd05a88f482d06116e1fc99fb51bca2b5b
1 file changed +1 -1
+1 -1
--- src/main.c
+++ src/main.c
@@ -476,11 +476,11 @@
476476
477477
blob_rewind(&file);
478478
while( nLine-->0 && (n = blob_line(&file, &line))>0 ){
479479
/* Reminder: ^^^ nLine check avoids that embedded NUL bytes in the
480480
** --args file causes nLine to be less than blob_line() will end
481
- ** up reporting in that case, which leads to an memory illegal
481
+ ** up reporting, as such a miscount leads to an illegal memory
482482
** write. See forum post
483483
** https://fossil-scm.org/forum/forumpost/7b34eecc1b8c for
484484
** details */
485485
if( n<1 ){
486486
/* Reminder: corner-case: a line with 1 byte and no newline. */
487487
--- src/main.c
+++ src/main.c
@@ -476,11 +476,11 @@
476
477 blob_rewind(&file);
478 while( nLine-->0 && (n = blob_line(&file, &line))>0 ){
479 /* Reminder: ^^^ nLine check avoids that embedded NUL bytes in the
480 ** --args file causes nLine to be less than blob_line() will end
481 ** up reporting in that case, which leads to an memory illegal
482 ** write. See forum post
483 ** https://fossil-scm.org/forum/forumpost/7b34eecc1b8c for
484 ** details */
485 if( n<1 ){
486 /* Reminder: corner-case: a line with 1 byte and no newline. */
487
--- src/main.c
+++ src/main.c
@@ -476,11 +476,11 @@
476
477 blob_rewind(&file);
478 while( nLine-->0 && (n = blob_line(&file, &line))>0 ){
479 /* Reminder: ^^^ nLine check avoids that embedded NUL bytes in the
480 ** --args file causes nLine to be less than blob_line() will end
481 ** up reporting, as such a miscount leads to an illegal memory
482 ** write. See forum post
483 ** https://fossil-scm.org/forum/forumpost/7b34eecc1b8c for
484 ** details */
485 if( n<1 ){
486 /* Reminder: corner-case: a line with 1 byte and no newline. */
487

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button