X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=build.c;h=2b3d2a7dd1d02ffde49d25521cd72f24cd314788;hb=0cccb35b0b081ca047577461f199463ec2060a3b;hp=381ff349431c96314a29c16cec4c651894940d45;hpb=524c05104673b95ef0841d6ee90bcd24f9b829dc;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/build.c b/build.c index 381ff34..2b3d2a7 100644 --- a/build.c +++ b/build.c @@ -85,7 +85,7 @@ void write_msg( vg_msg *msg, const char *path ){ exit(0); } - fwrite( msg->buf, msg->cur, 1, fp ); + fwrite( msg->buf, msg->cur.co, 1, fp ); fclose( fp ); vg_success( "Written %s (%ub)\n", path, msg->cur ); }