Append instead of truncate.

This commit is contained in:
hjp 2005-04-25 20:28:19 +00:00
parent cf51e84792
commit 068ed2ebf2
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ int main(int argc, char **argv) {
exit(1);
}
}
if ((fp = fopen(file, "w")) == NULL) {
if ((fp = fopen(file, "a")) == NULL) {
fprintf(stderr, "%s: cannot open %s: %s\n", argv[0], file, strerror(errno));
exit(1);
}