Skip to content

Commit

Permalink
Merge pull request #11 from Samana/master
Browse files Browse the repository at this point in the history
Minor fix: incorrect size for memset.
  • Loading branch information
walbourn committed Sep 23, 2015
2 parents d5ae8a9 + 565eab0 commit 4fa870d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/WaveFrontReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ class WaveFrontReader
nShininess( 0 ),
fAlpha( 1.f ),
bSpecular( false )
{ memset(strName, 0, MAX_PATH); memset(strTexture, 0, MAX_PATH); }
{ memset(strName, 0, sizeof(strName)); memset(strTexture, 0, sizeof(strTexture)); }
};

std::vector<Vertex> vertices;
Expand Down

0 comments on commit 4fa870d

Please sign in to comment.