From 448a1ec4b56468937da463ac87afc5fd6ddec483 Mon Sep 17 00:00:00 2001 From: pommicket Date: Mon, 24 Jan 2022 14:43:51 -0500 Subject: little correction to parse_type --- 05/parse.b | 3 ++- 05/util.b | 2 +- 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 -- cgit v1.2.3