Browse Source

Merge pull request #281 from sjmulder/pr/fwrite

Don't ignore fwrite errors
master
Mischievous Meerkat GitHub 5 years ago
parent
commit
f0b00c9fbf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/nnn.c

+ 2
- 2
src/nnn.c View File

@@ -745,9 +745,9 @@ static void writecp(const char *buf, const size_t buflen)
return;

FILE *fp = fopen(g_cppath, "w");

if (fp) {
fwrite(buf, 1, buflen, fp);
if (fwrite(buf, 1, buflen, fp) != buflen)
printwarn(NULL);
fclose(fp);
} else
printwarn(NULL);


Loading…
Cancel
Save