about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/pOS/arch/x86/libc/string/memset.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pOS/arch/x86/libc/string/memset.cpp b/src/pOS/arch/x86/libc/string/memset.cpp
index 35ab14a..7183295 100644
--- a/src/pOS/arch/x86/libc/string/memset.cpp
+++ b/src/pOS/arch/x86/libc/string/memset.cpp
@@ -5,7 +5,7 @@ void* memset(void* buf, int value, size_t size)
     uint8_t* bufptr = static_cast<uint8_t*>(buf);
 
     for(size_t i = 0; i < size; i++)
-        *bufptr = (uint8_t)value;
+        bufptr[i] = (uint8_t)value;
 
     return buf;
 }