Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=cfec0e9b43fd4bdc9a9eac8f09b0b869b99b9ce0

commit cfec0e9b43fd4bdc9a9eac8f09b0b869b99b9ce0
Author: James Buren <[email protected]>
Date:   Wed Oct 24 21:31:59 2012 -0500

fix memory write bug

diff --git a/src/block.c b/src/block.c
index 8916451..0eb4465 100644
--- a/src/block.c
+++ b/src/block.c
@@ -269,9 +269,9 @@ extern struct device **device_probe_all(bool disk)
devices[n++] = device;
}

-  devices[n] = 0;
-
devices = realloc(devices,(n + 1) * sizeof(struct device *));
+
+  devices[n] = 0;

globfree(&ge);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to