Commit 95b5b3fd651401cbdbdb41ee5da9d8c4c8dd0d6a

Thomas de Grivel 2023-07-16T11:15:10

buf_parse_array_data

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/libc3/buf_parse.c b/libc3/buf_parse.c
index f542d43..77f2c83 100644
--- a/libc3/buf_parse.c
+++ b/libc3/buf_parse.c
@@ -121,12 +121,12 @@ sw buf_parse_array_data_rec (s_buf *buf, s_array *dest,
   address[dimension] = 0;
   while (1) {
     if (dimension == tmp.dimension - 1) {
-      if ((r = parse(buf, data)) < 0) {
+      if ((r = parse(buf, *data)) < 0) {
         warnx("buf_parse_array_data_rec: parse");
         goto clean;
       }
       result += r;
-      data += tmp.dimensions[dimension].item_size;
+      *data += tmp.dimensions[dimension].item_size;
     }
     else {
       if ((r = buf_parse_array_data_rec(buf, &tmp, dimension + 1,