]> rtime.felk.cvut.cz Git - mf6xx.git/blobdiff - src/uio/mf624/userspace/test_application/main.c
Do not allocate extra bytes for path in the mf624 UIO test.
[mf6xx.git] / 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");