Browse Source

make writing descs work

svn:r492
Roger Dingledine 22 years ago
parent
commit
d8f646c44f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/util.c

+ 1 - 1
src/common/util.c

@@ -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;
   }