Mercurial > hg
changeset 1531:9f92c0edde1c
Display a warning when writing to the tracelog file fails
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 04 Oct 2008 14:55:32 +0200 |
parents | 29c505d43b3e |
children | eebeb4171232 |
files | mcabber/src/utils.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/utils.c Sat Oct 04 14:13:49 2008 +0200 +++ b/mcabber/src/utils.c Sat Oct 04 14:55:32 2008 +0200 @@ -120,7 +120,8 @@ scr_LogPrint(LPRINT_NORMAL, "ERROR: Cannot open tracelog file"); return; } - fputs(data, fp); + if (fputs(data, fp) == EOF) + scr_LogPrint(LPRINT_NORMAL, "ERROR: Cannot write to tracelog file"); fclose(fp); } }