summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c04a432)
If the length is ever so large as to overflow, then we'll end up
returning a negative value (which indicates an error anyway).
break;
}
(*lineptr)[cur_len] = '\0';
break;
}
(*lineptr)[cur_len] = '\0';
- result = cur_len ? cur_len : result;
+ result = cur_len ? (ssize_t) cur_len : result;
unlock_return:
funlockfile (fp); /* doesn't set errno */
unlock_return:
funlockfile (fp); /* doesn't set errno */