[xiph-commits] r3396 - liboggz/trunk/src/tools
conrad at svn.annodex.net
conrad at svn.annodex.net
Fri Feb 1 21:15:28 PST 2008
Author: conrad
Date: 2008-02-01 21:15:25 -0800 (Fri, 01 Feb 2008)
New Revision: 3396
Modified:
liboggz/trunk/src/tools/skeleton.c
Log:
apply check of fwrite returning 0 when writing skeleton page data, adapted
from patch by ogg.k.ogg.k
Modified: liboggz/trunk/src/tools/skeleton.c
===================================================================
--- liboggz/trunk/src/tools/skeleton.c 2008-02-02 04:55:41 UTC (rev 3395)
+++ liboggz/trunk/src/tools/skeleton.c 2008-02-02 05:15:25 UTC (rev 3396)
@@ -82,7 +82,8 @@
int written;
written = fwrite(og->header,1, og->header_len, out);
- written += fwrite(og->body,1, og->body_len, out);
+ if (written > 0)
+ written += fwrite(og->body,1, og->body_len, out);
return written;
}
More information about the commits
mailing list