Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=838bd3e266358434df3f5c0e2f14cf67f602864c
commit 838bd3e266358434df3f5c0e2f14cf67f602864c Author: James Buren <[email protected]> Date: Tue Oct 16 22:11:57 2012 -0500 minor fixup for disk flush diff --git a/src/block.c b/src/block.c index ee780c4..1dfd8d3 100644 --- a/src/block.c +++ b/src/block.c @@ -851,7 +851,7 @@ extern bool disk_flush(struct disk *disk) prev = part; } - snprintf(command+n,_POSIX_ARG_MAX-n,"' | sfdisk --unit S --Linux '%s';echo -n -e 'x\\ni\\n0x%.8x\\nw\\n' | fdisk '%s'", + snprintf(command+n,_POSIX_ARG_MAX-n,"' | sfdisk --unit S --Linux '%s';echo -n -e 'x\\ni\\n0x%.8x\\nw\\n' | fdisk '%s';", disk->device->path, (disk->dosuuid == 0) ? (unsigned int) rand() : disk->dosuuid, disk->device->path @@ -888,7 +888,7 @@ extern bool disk_flush(struct disk *disk) n = strlen(command); } - snprintf(command+n,_POSIX_ARG_MAX-n," '%s'", + snprintf(command+n,_POSIX_ARG_MAX-n," '%s';", disk->device->path ); _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
