DisplayList.c:290:4: error: format not a string literal and no format
arguments [-Werror=format-security]

Signed-off-by: Adam Jackson <[email protected]>
---
 src/DisplayList.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
1.8.3.1

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to