fix some warnings about buffer sizes

This commit is contained in:
Stefan Bühler 2021-09-15 15:07:35 +02:00
parent 03ef972059
commit fc3baeef51

4
draw.c
View File

@ -100,7 +100,7 @@ static int dopcxreal(char *name,gfxset *gs) {
sprintf(tname,DATADIR "/%s",name);
ihand=open(tname,O_RDONLY);
if(ihand<0) {
char tname2[256];
char tname2[260];
sprintf(tname2,"%s.pcx",tname);
ihand=open(tname2,O_RDONLY);
if(ihand<0)
@ -386,7 +386,7 @@ void loadgfx() {
gfxset *colorgs;
int err;
int i;
char name[256];
char name[267];
strcpy(walkingname,"walk");
strcpy(colorsetname,"pal");