minor changes
[carveJwlIkooP6JGAAIwe30JlM.git] / build.c
diff --git a/build.c b/build.c
index 381ff349431c96314a29c16cec4c651894940d45..2b3d2a7dd1d02ffde49d25521cd72f24cd314788 100644 (file)
--- 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 );
 }