]> rtime.felk.cvut.cz Git - mf6xx.git/commitdiff
Do not allocate extra bytes for path in the mf624 UIO test.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Fri, 31 May 2013 11:52:21 +0000 (13:52 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Fri, 31 May 2013 11:52:21 +0000 (13:52 +0200)
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
src/uio/mf624/userspace/test_application/main.c

index 0e1b191a1635f223c2eb379855be59b977e8d098..f52041d4098c072777e81e1477242c4771d87c32 100644 (file)
@@ -57,7 +57,7 @@ int bar_mapping_fill(bar_mapping_t *barmap, const char *uio_dev, int map_nr)
                return -1;
        /* add reserve to store each size addr, name, offset, size */
         ssiz += 6 + 1;
-       s = alloca(ssiz + 6 + 1);
+       s = alloca(ssiz);
 
        snprintf(s, ssiz, "/sys/class/uio/%s/maps/map%i/addr", uio_dev, map_nr);
        file = fopen(s, "rb");