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
1 changed files with 2 additions and 2 deletions

4
draw.c
View File

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