Update for double filerecord announces

This commit is contained in:
Michiel Broek
2004-05-10 10:47:57 +00:00
parent 27822b7d24
commit a30295d56b
2 changed files with 2 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ int Add_ToBeRep(struct _filerecord report)
fname = calloc(PATH_MAX, sizeof(char));
sprintf(fname, "%s/etc/toberep.data", getenv("MBSE_ROOT"));
if ((tbr = fopen(fname, "a+")) == NULL) {
if ((tbr = fopen(fname, "r+")) == NULL) {
WriteError("$Can't create %s", fname);
free(fname);
return FALSE;