summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-navigation/orrery/orrery/0001-orrery-Fix-sprintf-format.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-navigation/orrery/orrery/0001-orrery-Fix-sprintf-format.patch')
-rw-r--r--meta-oe/recipes-navigation/orrery/orrery/0001-orrery-Fix-sprintf-format.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-oe/recipes-navigation/orrery/orrery/0001-orrery-Fix-sprintf-format.patch b/meta-oe/recipes-navigation/orrery/orrery/0001-orrery-Fix-sprintf-format.patch
new file mode 100644
index 000000000..eb6241fdd
--- /dev/null
+++ b/meta-oe/recipes-navigation/orrery/orrery/0001-orrery-Fix-sprintf-format.patch
@@ -0,0 +1,26 @@
1From e600d3c09d2f97a197f86e6987d44d142e7b7cdf Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 27 Jun 2017 21:12:17 -0700
4Subject: [PATCH] orrery: Fix sprintf format
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 orrery.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/orrery.c b/orrery.c
12index e3a1f6d..1b31a9f 100644
13--- a/orrery.c
14+++ b/orrery.c
15@@ -3767,7 +3767,7 @@ static void drawOptsScreens(void)
16 displayWidth/2 - gdk_string_width(smallFont, scratchString)/2,
17 12, scratchString);
18 for (day = 0; day < 7; day++) {
19- sprintf(scratchString, dayName[day]);
20+ sprintf(scratchString, "%s", dayName[day]);
21 gdk_draw_string(pixmap, smallFont, blueGC,
22 CAL_DAY_WIDTH/2 + day*CAL_DAY_WIDTH + CAL_LEFT_OFFSET -
23 gdk_string_width(smallFont, scratchString)/2,
24--
252.13.2
26