summaryrefslogtreecommitdiff
path: root/libpsx/src/libc/string.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2021-01-03 01:06:48 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2021-01-03 01:09:04 +0100
commitfaa425ef7a297c37d8cbe8f4273ee1bcb881c731 (patch)
treebc61b08d1881af77174137d7dac19a1b53cac5bd /libpsx/src/libc/string.c
parente3eb9612af28762c4efdfcdf7cd493e24335d0f4 (diff)
Fix non-standard memset definition
Diffstat (limited to 'libpsx/src/libc/string.c')
-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;