- 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:
SoftCoder
2013-12-17 17:35:51 -08:00
parent d8160c1065
commit e3996ceb92
15 changed files with 147 additions and 59 deletions

View File

@@ -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);
}