diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs/librsync/files/librsync-0.9.7-format-security.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/librsync/files/librsync-0.9.7-format-security.patch')
-rw-r--r-- | net-libs/librsync/files/librsync-0.9.7-format-security.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-libs/librsync/files/librsync-0.9.7-format-security.patch b/net-libs/librsync/files/librsync-0.9.7-format-security.patch new file mode 100644 index 000000000000..e35980a4d7a0 --- /dev/null +++ b/net-libs/librsync/files/librsync-0.9.7-format-security.patch @@ -0,0 +1,20 @@ +Description: Always use a format string in printf + Fix the warning: buf.c:216:9: error: format not a string literal and no + format arguments [-Werror=format-security] +Author: Andrey Rahmatullin <wrar@wrar.name> +Forwarded: no +Last-Update: 2012-02-05 + +diff --git a/buf.c b/buf.c +index 7f4e7a0..3a83f2b 100644 +--- a/buf.c ++++ b/buf.c +@@ -213,7 +213,7 @@ rs_result rs_file_copy_cb(void *arg, rs_long_t pos, size_t *len, void **buf) + + got = fread(*buf, 1, *len, f); + if (got == -1) { +- rs_error(strerror(errno)); ++ rs_error("%s", strerror(errno)); + return RS_IO_ERROR; + } else if (got == 0) { + rs_error("unexpected eof on fd%d", fileno(f)); |