From 9861a995aa7010043b85f8d53272a266f7d317a7 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Thu, 30 Nov 2023 16:57:46 +0100 Subject: [PATCH] update call to interpret_texture_name to include string len --- src/nxsbuild/plyloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nxsbuild/plyloader.cpp b/src/nxsbuild/plyloader.cpp index 91d5080..a3dfd91 100644 --- a/src/nxsbuild/plyloader.cpp +++ b/src/nxsbuild/plyloader.cpp @@ -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);