diff options
-rw-r--r-- | desktop/selection.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |