File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ void search_stream(FILE *stream, const char *path) {
361
361
print_init_context ();
362
362
363
363
for (i = 1 ; (line_len = getline (& line , & line_cap , stream )) > 0 ; i ++ ) {
364
- #if HAS_MSVCLIBX /* Short term workaround for MsvcLibX lack of support for Unicode on stdin */
364
+ #if HAS_MSVCLIBX /* Short term workaround for MsvcLibX lack of support for Unicode on stdin */
365
365
if (fileno (stream ) == 0 ) { /* If reading from stdin */
366
366
struct stat s ;
367
367
fstat (0 , & s );
@@ -378,7 +378,7 @@ void search_stream(FILE *stream, const char *path) {
378
378
}
379
379
}
380
380
if (cp != CP_UTF8 ) {
381
- if ((line_len * 4 ) >= line_cap ) { /* Prevent buffer overflows */
381
+ if ((line_len * 4 ) >= line_cap ) { /* Prevent buffer overflows */
382
382
line_cap = (line_len * 4 ) + 1 ; /* Worst case size for UTF-8 characters */
383
383
line = realloc (line , line_cap );
384
384
if (!line ) { /* Out of memory */
You can’t perform that action at this time.
0 commit comments