mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 19:51:44 +02:00
- bugfixes for coverity reported issues
- new bash parameters for build-mg.sh (in prep for coverity automation) - updated travis build to use new bash param
This commit is contained in:
@@ -228,11 +228,11 @@ int g3d2xml(FILE *infile, FILE *outfile)
|
||||
{
|
||||
memset(&textureName[0],0,NAMESIZE+1);
|
||||
nBytes = NAMESIZE;
|
||||
if (fread(&textureName, nBytes, 1, infile) != 1)
|
||||
{
|
||||
if (fread(&textureName, nBytes, 1, infile) != 1) {
|
||||
printf("Could not read texture name!\n");
|
||||
return FALSE;
|
||||
}
|
||||
textureName[NAMESIZE] = 0;
|
||||
fprintf(outfile, "\t\t<Texture name=\"%s\"/>\n",
|
||||
textureName);
|
||||
}
|
||||
|
Reference in New Issue
Block a user