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:
parent
54d959d97f
commit
0e6b8b3cb4
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue