summaryrefslogtreecommitdiff
path: root/src/lib.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-02-02 10:10:24 -0500
committerFreya Murphy <freya@freyacat.org>2024-02-02 10:13:32 -0500
commit1d794d87f4307f7b34f5b69d69213343aed9d137 (patch)
tree50d2508ddc4e6be814d31bfb37a37065e5e71525 /src/lib.c
parentdebugger (diff)
downloadcorn-1d794d87f4307f7b34f5b69d69213343aed9d137.tar.gz
corn-1d794d87f4307f7b34f5b69d69213343aed9d137.tar.bz2
corn-1d794d87f4307f7b34f5b69d69213343aed9d137.zip
looping kalloc can allocate all of memory (sometimes) :3
Diffstat (limited to 'src/lib.c')
-rw-r--r--src/lib.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib.c b/src/lib.c
index ee4afcb..d2708c8 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -31,7 +31,6 @@ void *memmove(void *dest, const void *src, unsigned long n) {
}
void *memset(void *restrict dest, int c, unsigned long n) {
-
unsigned char *d = dest;
for (; n; n--) *d++ = c;
return dest;