1.5 - dsprintf assertion failure
by Guy Allard · in Torque Game Engine · 10/25/2006 (7:42 am) · 1 replies
I'm getting an assertfatal with dsprintf.
This is happening when I try to write, for example, 18 characters into an 18 character buffer.
I notice there's a new assertion added at line 301 of winStrings.cc that reads:
AssertFatal( len < bufferSize, "dSprintf wrote to more memory than the specified buffer size - Stack Corruption Possible" ); //Added
should the '<' not be a '<=' ??
(if I change the buffer size to 19 and write 18 chars to it, it's fine);
This is happening when I try to write, for example, 18 characters into an 18 character buffer.
I notice there's a new assertion added at line 301 of winStrings.cc that reads:
AssertFatal( len < bufferSize, "dSprintf wrote to more memory than the specified buffer size - Stack Corruption Possible" ); //Added
should the '<' not be a '<=' ??
(if I change the buffer size to 19 and write 18 chars to it, it's fine);
About the author
Torque Owner J. Coleman