diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-06-27 23:14:16 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-07-01 09:59:27 +0200 |
commit | 80608a7a810522f6f47a658b6e53fc632820fc4f (patch) | |
tree | 508acb4742fb222f522fd206653344fde5bb5408 /meta-oe/recipes-navigation/orrery | |
parent | 8012181e4f4d0f077dfad1ce31316355ed8051d1 (diff) | |
download | meta-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.patch | 26 | ||||
-rw-r--r-- | meta-oe/recipes-navigation/orrery/orrery_2.7.bb | 3 |
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 @@ | |||
1 | From e600d3c09d2f97a197f86e6987d44d142e7b7cdf Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 27 Jun 2017 21:12:17 -0700 | ||
4 | Subject: [PATCH] orrery: Fix sprintf format | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | orrery.c | 2 +- | ||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/orrery.c b/orrery.c | ||
12 | index 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 | -- | ||
25 | 2.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 | |||
10 | SRC_URI = "http://projects.openmoko.org/frs/download.php/923/orrery_2.7_clean.tar.gz \ | 10 | SRC_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 | ||
15 | SRC_URI[md5sum] = "bd62a33e7554ee1030313dfcdefcda8b" | 16 | SRC_URI[md5sum] = "bd62a33e7554ee1030313dfcdefcda8b" |
16 | SRC_URI[sha256sum] = "645166a5e05b2064ab630534a514697fc47b681951e7fe1d635c259cbdf7a5e6" | 17 | SRC_URI[sha256sum] = "645166a5e05b2064ab630534a514697fc47b681951e7fe1d635c259cbdf7a5e6" |