[prev in list] [next in list] [prev in thread] [next in thread]
List: openbios
Subject: [OpenBIOS] [PATCH] openbios: compile fixes for GCC 7.3
From: Mark Cave-Ayland <mark.cave-ayland () ilande ! co ! uk>
Date: 2018-04-21 16:01:58
Message-ID: 20180421160158.26682-1-mark.cave-ayland () ilande ! co ! uk
[Download RAW message or body]
This fixes additional warnings found when upgrading my compiler toolset from
GCC 5.x to 7.x.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
fs/hfs/hfs_fs.c | 2 +-
libopenbios/video_common.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/hfs/hfs_fs.c b/fs/hfs/hfs_fs.c
index 2d62ec0..2e63dbf 100644
--- a/fs/hfs/hfs_fs.c
+++ b/fs/hfs/hfs_fs.c
@@ -101,7 +101,7 @@ _search( hfsvol *vol, const char *path, const char *sname, hfsfile **ret_fd )
*p = 0;
topdir = 0;
- strncat( buf, ent.name, sizeof(buf) );
+ strncat( buf, ent.name, sizeof(buf) - 1);
if( (status=_search(vol, buf, sname, ret_fd)) != 2 )
continue;
topdir = 1;
diff --git a/libopenbios/video_common.c b/libopenbios/video_common.c
index 9bbc18c..7496446 100644
--- a/libopenbios/video_common.c
+++ b/libopenbios/video_common.c
@@ -191,7 +191,7 @@ void setup_video()
values in the Forth dictionary. Hence everything is always in
sync. */
phandle_t options;
- char buf[6];
+ char buf[10];
feval("['] display-ih cell+");
video.ih = cell2pointer(POP());
--
2.11.0
--
OpenBIOS http://openbios.org/
Mailinglist: http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic