Fix non-standard memset definition

This commit is contained in:
Xavier Del Campo Romero 2021-01-03 01:06:48 +01:00
parent e3eb9612af
commit faa425ef7a
1 changed files with 2 additions and 2 deletions

View File

@ -35,12 +35,12 @@ void *memccpy(void *dst, const void *src, int c, size_t len)
return NULL; 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; unsigned char *dstc = (unsigned char*)dst;
int x; int x;
for(x = 0; x < n; x++) for(x = 0; x < len; x++)
dstc[x] = c; dstc[x] = c;
return dst; return dst;