From: Brett Gordon Date: Tue, 22 Dec 2015 14:34:58 +0000 (-0500) Subject: ucp.c: bugfix: attempt to compare swizzled data with unswizzled constant. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8fb2b70ed5bd7ef9b5a686002d0d0c0260afdefd;p=FUZIX.git ucp.c: bugfix: attempt to compare swizzled data with unswizzled constant. This fixes 'rm' segfault. --- diff --git a/Standalone/ucp.c b/Standalone/ucp.c index 41fd54a3..1e57212d 100644 --- a/Standalone/ucp.c +++ b/Standalone/ucp.c @@ -1930,7 +1930,7 @@ static void blk_free(int devno, blkno_t blk) validblk(devno, blk); - if (dev->s_nfree == 50) { + if (dev->s_nfree == swizzle16(50) ) { buf = bread(devno, blk, 1); bcopy((char *) &(dev->s_nfree), buf, 512); bawrite((bufptr) buf);