diff options
Diffstat (limited to 'src/pj_fileapi.c')
| -rw-r--r-- | src/pj_fileapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pj_fileapi.c b/src/pj_fileapi.c index c0b33693..0854dd09 100644 --- a/src/pj_fileapi.c +++ b/src/pj_fileapi.c @@ -185,7 +185,7 @@ char *pj_ctx_fgets(projCtx ctx, char *line, int size, PAFile file) bytes_read = pj_ctx_fread(ctx, line, 1, size-1, file); if(bytes_read == 0) return NULL; - if(bytes_read < size) + if(bytes_read < (size_t)size) { line[bytes_read] = '\0'; } |
