Commit 8ca2ea0f authored by hybrid's avatar hybrid

Fix too small char buffer.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2161 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 72e38c41
...@@ -321,9 +321,9 @@ void CNullDriver::renameTexture(ITexture* texture, const core::string<c16>& newN ...@@ -321,9 +321,9 @@ void CNullDriver::renameTexture(ITexture* texture, const core::string<c16>& newN
ITexture* CNullDriver::getTexture(const core::string<c16>& filename) ITexture* CNullDriver::getTexture(const core::string<c16>& filename)
{ {
// Identify textures by their absolute filenames if possible. // Identify textures by their absolute filenames if possible.
core::string<c16> absolutePath = FileSystem->getAbsolutePath(filename); const core::string<c16> absolutePath = FileSystem->getAbsolutePath(filename);
ITexture* texture = findTexture(absolutePath ); ITexture* texture = findTexture(absolutePath);
if (texture) if (texture)
return texture; return texture;
...@@ -333,7 +333,7 @@ ITexture* CNullDriver::getTexture(const core::string<c16>& filename) ...@@ -333,7 +333,7 @@ ITexture* CNullDriver::getTexture(const core::string<c16>& filename)
return texture; return texture;
// Now try to open the file using the complete path. // Now try to open the file using the complete path.
io::IReadFile* file = FileSystem->createAndOpenFile(absolutePath ); io::IReadFile* file = FileSystem->createAndOpenFile(absolutePath);
if(!file) if(!file)
{ {
......
...@@ -45,9 +45,9 @@ CSoftwareTexture2::CSoftwareTexture2(IImage* image, const core::string<c16>& nam ...@@ -45,9 +45,9 @@ CSoftwareTexture2::CSoftwareTexture2(IImage* image, const core::string<c16>& nam
} }
else else
{ {
char buf[128]; char buf[256];
core::stringw showName ( name ); core::stringw showName ( name );
snprintf ( buf, 128, "Burningvideo: Warning Texture %ls reformat %dx%d -> %dx%d,%d", snprintf ( buf, 256, "Burningvideo: Warning Texture %ls reformat %dx%d -> %dx%d,%d",
showName.c_str(), showName.c_str(),
OrigSize.Width, OrigSize.Height, optSize.Width, optSize.Height, OrigSize.Width, OrigSize.Height, optSize.Width, optSize.Height,
BURNINGSHADER_COLOR_FORMAT BURNINGSHADER_COLOR_FORMAT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment