Fossil SCM
Minor doc fix for previous commit. No code changes.
Commit
04a9e74a93e21638ec545e5b5cc931bd05a88f482d06116e1fc99fb51bca2b5b
Parent
e120c2a9a7278cb…
1 file changed
+1
-1
+1
-1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -476,11 +476,11 @@ | ||
| 476 | 476 | |
| 477 | 477 | blob_rewind(&file); |
| 478 | 478 | while( nLine-->0 && (n = blob_line(&file, &line))>0 ){ |
| 479 | 479 | /* Reminder: ^^^ nLine check avoids that embedded NUL bytes in the |
| 480 | 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 | |
| 481 | + ** up reporting, as such a miscount leads to an illegal memory | |
| 482 | 482 | ** write. See forum post |
| 483 | 483 | ** https://fossil-scm.org/forum/forumpost/7b34eecc1b8c for |
| 484 | 484 | ** details */ |
| 485 | 485 | if( n<1 ){ |
| 486 | 486 | /* Reminder: corner-case: a line with 1 byte and no newline. */ |
| 487 | 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 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 |