diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
commit | d87262dd706fec50cd150aab3e93883b6337466d (patch) | |
tree | 246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-text/paps/files/paps-0.6.8-fix-empty-file.patch | |
parent | 71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/paps/files/paps-0.6.8-fix-empty-file.patch')
-rw-r--r-- | app-text/paps/files/paps-0.6.8-fix-empty-file.patch | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/app-text/paps/files/paps-0.6.8-fix-empty-file.patch b/app-text/paps/files/paps-0.6.8-fix-empty-file.patch deleted file mode 100644 index ae334d1d28c0..000000000000 --- a/app-text/paps/files/paps-0.6.8-fix-empty-file.patch +++ /dev/null @@ -1,23 +0,0 @@ -https://bugs.gentoo.org/show_bug.cgi?id=566050#c2 - ---- paps-0.6.8/src/paps.c -+++ paps-0.6.8/src/paps.c -@@ -569,11 +569,14 @@ - - fclose (file); - -- /* Add a trailing new line if it is missing */ -- if (inbuf->str[inbuf->len-1] != '\n') -- g_string_append(inbuf, "\n"); -+ if (inbuf->len) { -+ /* Add a trailing new line if it is missing */ -+ if (inbuf->str[inbuf->len-1] != '\n') -+ g_string_append(inbuf, "\n"); - -- text = inbuf->str; -+ text = inbuf->str; -+ } else -+ text = g_strdup("\n"); - g_string_free (inbuf, FALSE); - - return text; |