Kaynağa Gözat

Merge pull request #281 from sjmulder/pr/fwrite

Don't ignore fwrite errors
master
Mischievous Meerkat GitHub 5 yıl önce
ebeveyn
işleme
f0b00c9fbf
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +2
    -2
      src/nnn.c

+ 2
- 2
src/nnn.c Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet