summaryrefslogtreecommitdiff
path: root/05
diff options
context:
space:
mode:
Diffstat (limited to '05')
-rw-r--r--05/parse.b3
-rw-r--r--05/util.b2
2 files changed, 3 insertions, 2 deletions
diff --git a/05/parse.b b/05/parse.b
index b6f230f..2df9db1 100644
--- a/05/parse.b
+++ b/05/parse.b
@@ -459,7 +459,8 @@ function parse_type_to
if c == 0 goto bad_type
n = type_length(c)
c += types
- out = memcpy(out, c, n)
+ memcpy(out, c, n)
+ out += n
goto base_type_done
:skip_struct_union_enum
diff --git a/05/util.b b/05/util.b
index 98617ec..9f8aee6 100644
--- a/05/util.b
+++ b/05/util.b
@@ -280,7 +280,7 @@ function memccpy
memccpy_advance(&dest, &src, terminator)
return dest
-; just like C
+; like C, but returns 0
function memcpy
argument dest
argument src