diff options
Diffstat (limited to 'common/string.c')
| -rw-r--r-- | common/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/string.c b/common/string.c index 0870b78..810a703 100644 --- a/common/string.c +++ b/common/string.c @@ -251,7 +251,7 @@ __weak void *memset(void *ptr, int value, size_t num) char c = value; while (num--) - *(p--) = c; + *(p++) = c; return ptr; } |
