diff options
Diffstat (limited to 'libpsx/src')
| -rw-r--r-- | libpsx/src/libc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpsx/src/libc.c b/libpsx/src/libc.c index 58884b0..5c4b17a 100644 --- a/libpsx/src/libc.c +++ b/libpsx/src/libc.c @@ -722,12 +722,12 @@ int puts(const char *str) return EOF; } -size_t fwrite(void *restrict const ptr, const size_t size, const size_t nmemb, +size_t fwrite(const void *restrict const ptr, const size_t size, const size_t nmemb, FILE *restrict const f) { if(IS_CONS_OUT(f)) // stdout or stderr { - char *c = ptr; + const char *c = ptr; int i; for(i = 0; i < size; i++) |
