summaryrefslogtreecommitdiff
path: root/extra/motif/16-fix-undefined-use-of-sprintf.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-04 23:28:13 +0100
committerdavidovski <david@davidovski.xyz>2022-05-04 23:28:13 +0100
commit4c585ad54388285500fd18a6aaa516894e0f2c16 (patch)
tree756ab363c11ce8dec4d16e20885c5e422db4a92e /extra/motif/16-fix-undefined-use-of-sprintf.patch
parent751b7f3d84515715d07d92a5aed78062bd39adff (diff)
added xcatclock
Diffstat (limited to 'extra/motif/16-fix-undefined-use-of-sprintf.patch')
-rw-r--r--extra/motif/16-fix-undefined-use-of-sprintf.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/extra/motif/16-fix-undefined-use-of-sprintf.patch b/extra/motif/16-fix-undefined-use-of-sprintf.patch
new file mode 100644
index 0000000..95a753e
--- /dev/null
+++ b/extra/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 <graham@nerve.org.za>
+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--;