fix some warnings about buffer sizes
This commit is contained in:
parent
03ef972059
commit
fc3baeef51
4
draw.c
4
draw.c
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user