Skip to content
Snippets Groups Projects
Commit d8f646c4 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

make writing descs work

svn:r492
parent a970cd7c
No related branches found
No related tags found
No related merge requests found
......@@ -380,7 +380,7 @@ write_str_to_file(const char *fname, const char *str)
strerror(errno));
close(fd); return -1;
}
if (fputs(str,file)) {
if (fputs(str,file) == EOF) {
log(LOG_ERR, "Error writing to %s: %s", tempname, strerror(errno));
fclose(file); return -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment