From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/motif/16-fix-undefined-use-of-sprintf.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 repo/motif/16-fix-undefined-use-of-sprintf.patch (limited to 'repo/motif/16-fix-undefined-use-of-sprintf.patch') diff --git a/repo/motif/16-fix-undefined-use-of-sprintf.patch b/repo/motif/16-fix-undefined-use-of-sprintf.patch new file mode 100644 index 0000000..95a753e --- /dev/null +++ b/repo/motif/16-fix-undefined-use-of-sprintf.patch @@ -0,0 +1,17 @@ +Description: Fix undefined use of sprintf + This patch fixes the undefined use of sprintf when the + source and destination buffers overlap. +Author: Graham Inggs +Forwarded: http://bugs.motifzone.net/show_bug.cgi?id=1628 +Last-Update: 2013-09-24 +--- a/lib/Xm/XmRenderT.c ++++ b/lib/Xm/XmRenderT.c +@@ -2703,7 +2703,7 @@ + number = tlist -> count; + tab = (_XmTab) tlist -> start; + while(number > 0) { +- sprintf(temp, "%s %f %d %d %d, ", temp, tab -> value, ++ sprintf(temp + strlen(temp), " %f %d %d %d, ", tab -> value, + tab -> units, tab -> alignment, tab -> offsetModel); + tab = (_XmTab) tab -> next; + number--; -- cgit v1.2.1