summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/puzzles/files/0001-map-Fix-stringop-overflow-warning.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-sato/puzzles/files/0001-map-Fix-stringop-overflow-warning.patch')
-rw-r--r--meta/recipes-sato/puzzles/files/0001-map-Fix-stringop-overflow-warning.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/meta/recipes-sato/puzzles/files/0001-map-Fix-stringop-overflow-warning.patch b/meta/recipes-sato/puzzles/files/0001-map-Fix-stringop-overflow-warning.patch
deleted file mode 100644
index 7f46d3ec0e..0000000000
--- a/meta/recipes-sato/puzzles/files/0001-map-Fix-stringop-overflow-warning.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From: Khem Raj <raj.khem@gmail.com>
2map: Fix stringop-overflow warning
3
4Fixes
5
6../git/map.c: In function 'new_game_desc':
7../git/map.c:1663:23: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
8 1663 | ret[retlen++] = ',';
9 | ~~~~~~~~~~~~~~^~~~~
10../git/./map.c: In function 'new_game_desc':
11../git/./map.c:1663:23: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
12 1663 | ret[retlen++] = ',';
13 | ~~~~~~~~~~~~~~^~~~~
14
15Upstream-Status: Submitted [email discussion with upstream]
16
17Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18Signed-off-by: Khem Raj <raj.khem@gmail.com>
19
20Index: git/map.c
21===================================================================
22--- git.orig/map.c
23+++ git/map.c
24@@ -1659,6 +1659,10 @@ static char *new_game_desc(const game_pa
25 }
26 }
27
28+ if (retlen + 10 >= retsize) {
29+ retsize = retlen + 256;
30+ ret = sresize(ret, retsize, char);
31+ }
32 ret[retlen++] = 'a'-1 + run;
33 ret[retlen++] = ',';
34