diff --git a/libc3/buf_parse.c b/libc3/buf_parse.c
index b7e6035..5d57726 100644
--- a/libc3/buf_parse.c
+++ b/libc3/buf_parse.c
@@ -1745,6 +1745,7 @@ sw buf_parse_ident (s_buf *buf, s_ident *dest)
r = buf_parse_ident_sym(buf, &tmp.sym);
if (r <= 0)
goto restore;
+ result += r;
*dest = tmp;
r = result;
goto clean;