fix off-by-one error in memset()

This commit is contained in:
Markus Fröschle
2018-03-17 08:24:59 +01:00
parent 7f7de32cac
commit b2a567277a
3 changed files with 3 additions and 3 deletions

0
util/bas_sscanf.c Normal file
View File

View File

@@ -59,7 +59,7 @@ void *memset(void *s, int c, size_t n)
do
{
*dst++ = c;
} while (n--);
} while (--n);
return s;
}