Skip to content

Commit

Permalink
update call to interpret_texture_name to include string len
Browse files Browse the repository at this point in the history
  • Loading branch information
cignoni committed Nov 30, 2023
1 parent ced2e3e commit 9861a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nxsbuild/plyloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ PlyLoader::PlyLoader(QString filename):
if(bufstr[i]!='\t' && bufstr[i]>=32 && bufstr[i]<=126 ) bufclean.push_back(bufstr[i]);

char buf2[255];
ply::interpret_texture_name( bufclean.c_str(),filename.toLatin1().data(), buf2 );
ply::interpret_texture_name( bufclean.c_str(),filename.toLatin1().data(), buf2, 255);
LoadTexture tex;
tex.filename = QString(buf2).trimmed();
texture_filenames.push_back(tex);
Expand Down

0 comments on commit 9861a99

Please sign in to comment.