X-Git-Url: http://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/27f6a9c3d4663286f1bec753fbd035ab1a6eb5de..1096a8ac154a1e58b527a839f062963b5db59344:/src/getline.h diff --git a/src/getline.h b/src/getline.h index b0f4999..f659c60 100644 --- a/src/getline.h +++ b/src/getline.h @@ -93,7 +93,7 @@ static inline int dx_getline(char **linebuf, size_t *n, FILE *f) if (ferror(f)) return DX_GETLINE_ERROR; - return pos ? DX_GETLINE_OK : DX_GETLINE_ERROR; + return pos ? DX_GETLINE_OK : DX_GETLINE_EOF; } pos += strlen(&work[pos]);