(svn r24432) -Fix: compile warning in depend

This commit is contained in:
rubidium 2012-07-22 18:56:16 +00:00
parent 4dfe9379a0
commit cf773911b0
1 changed files with 4 additions and 1 deletions

View File

@ -922,7 +922,10 @@ int main(int argc, char *argv[])
if (size != 0) {
src = fopen(backup, "wb");
fwrite(content, 1, size, src);
if (fwrite(content, 1, size, src) != (size_t)size) {
fprintf(stderr, "Could not write %s\n", filename);
exit(-2);
}
fclose(src);
/* Then append it to the real file. */