From abc3603feb605b861bddeeb962b6be2dcdb91000 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 28 May 2009 16:05:17 +0000 Subject: And again svn path=/trunk/netsurf/; revision=7607 --- desktop/selection.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop/selection.c b/desktop/selection.c index 0d45f1720..014c44659 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -976,6 +976,10 @@ bool selection_save_text(struct selection *s, const char *path) out = fopen(path, "w"); if (out) { int res = fputs(result, out); + if (res < 0) { + LOG(("Warning: writing data failed")); + } + res = fputs("\n", out); fclose(out); free(result); -- cgit v1.2.3