summaryrefslogtreecommitdiff
path: root/libpsx/src
diff options
context:
space:
mode:
Diffstat (limited to 'libpsx/src')
-rw-r--r--libpsx/src/libc/string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpsx/src/libc/string.c b/libpsx/src/libc/string.c
index 791e1df..7a21224 100644
--- a/libpsx/src/libc/string.c
+++ b/libpsx/src/libc/string.c
@@ -35,12 +35,12 @@ void *memccpy(void *dst, const void *src, int c, size_t len)
return NULL;
}
-void *memset(void *dst , char c , size_t n)
+void *memset(void *dst , int c , size_t len)
{
unsigned char *dstc = (unsigned char*)dst;
int x;
- for(x = 0; x < n; x++)
+ for(x = 0; x < len; x++)
dstc[x] = c;
return dst;