mirror of https://github.com/OpenTTD/OpenTTD
(svn r24432) -Fix: compile warning in depend
parent
4dfe9379a0
commit
cf773911b0
|
@ -922,7 +922,10 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
if (size != 0) {
|
if (size != 0) {
|
||||||
src = fopen(backup, "wb");
|
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);
|
fclose(src);
|
||||||
|
|
||||||
/* Then append it to the real file. */
|
/* Then append it to the real file. */
|
||||||
|
|
Loading…
Reference in New Issue