openbios: compile fixes for GCC 7.3

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>
This commit is contained in:
Mark Cave-Ayland 2018-04-21 17:01:58 +01:00
parent 54d959d97f
commit 0e6b8b3cb4
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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());