summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-navigation/orrery
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-06-27 23:14:16 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-07-01 09:59:27 +0200
commit80608a7a810522f6f47a658b6e53fc632820fc4f (patch)
tree508acb4742fb222f522fd206653344fde5bb5408 /meta-oe/recipes-navigation/orrery
parent8012181e4f4d0f077dfad1ce31316355ed8051d1 (diff)
downloadmeta-openembedded-80608a7a810522f6f47a658b6e53fc632820fc4f.tar.gz
orrery: Fix build with hardening flags
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-navigation/orrery')
-rw-r--r--meta-oe/recipes-navigation/orrery/orrery/0001-orrery-Fix-sprintf-format.patch26
-rw-r--r--meta-oe/recipes-navigation/orrery/orrery_2.7.bb3
2 files changed, 28 insertions, 1 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
diff --git a/meta-oe/recipes-navigation/orrery/orrery_2.7.bb b/meta-oe/recipes-navigation/orrery/orrery_2.7.bb
index 40a6df3c9..1a00b0808 100644
--- a/meta-oe/recipes-navigation/orrery/orrery_2.7.bb
+++ b/meta-oe/recipes-navigation/orrery/orrery_2.7.bb
@@ -10,7 +10,8 @@ inherit autotools-brokensep pkgconfig
10SRC_URI = "http://projects.openmoko.org/frs/download.php/923/orrery_2.7_clean.tar.gz \ 10SRC_URI = "http://projects.openmoko.org/frs/download.php/923/orrery_2.7_clean.tar.gz \
11 file://orrery.png \ 11 file://orrery.png \
12 file://use.GdkPixbuf.patch \ 12 file://use.GdkPixbuf.patch \
13" 13 file://0001-orrery-Fix-sprintf-format.patch \
14 "
14 15
15SRC_URI[md5sum] = "bd62a33e7554ee1030313dfcdefcda8b" 16SRC_URI[md5sum] = "bd62a33e7554ee1030313dfcdefcda8b"
16SRC_URI[sha256sum] = "645166a5e05b2064ab630534a514697fc47b681951e7fe1d635c259cbdf7a5e6" 17SRC_URI[sha256sum] = "645166a5e05b2064ab630534a514697fc47b681951e7fe1d635c259cbdf7a5e6"