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 /x11-libs/libXaw/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-libs/libXaw/files')
-rw-r--r-- | x11-libs/libXaw/files/libXaw-1.0.12-format-security.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/x11-libs/libXaw/files/libXaw-1.0.12-format-security.patch b/x11-libs/libXaw/files/libXaw-1.0.12-format-security.patch new file mode 100644 index 000000000000..dfc2e23672f9 --- /dev/null +++ b/x11-libs/libXaw/files/libXaw-1.0.12-format-security.patch @@ -0,0 +1,26 @@ +From ec7d7c303385a6bdb0833a5aaae96be697cca7ab Mon Sep 17 00:00:00 2001 +From: Adam Jackson <ajax@redhat.com> +Date: Thu, 21 Nov 2013 11:43:55 -0500 +Subject: Fix build with gcc -Werror=format-security + +DisplayList.c:290:4: error: format not a string literal and no format +arguments [-Werror=format-security] + +Signed-off-by: Adam Jackson <ajax@redhat.com> + +diff --git a/src/DisplayList.c b/src/DisplayList.c +index 3e99df4..0581bf7 100644 +--- a/src/DisplayList.c ++++ b/src/DisplayList.c +@@ -287,7 +287,7 @@ _XawDisplayList *XawCreateDisplayList(String string, Screen *screen, + } + if (fp) + { +- snprintf(cname, fp - fname + 1, fname); ++ snprintf(cname, fp - fname + 1, "%s", fname); + memmove(fname, fp + 1, strlen(fp)); + lc = cname[0] ? XawGetDisplayListClass(cname) : xlibc; + if (!lc) +-- +cgit v0.10.2 + |