Better fix.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2188 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -283,7 +283,7 @@ construct_response (UNICODE *buf, int R /* promoted from RESPONSE_REF */, ...)
|
|||||||
// XXX: this should someday be changed so that the function takes
|
// XXX: this should someday be changed so that the function takes
|
||||||
// the buffer size as an argument
|
// the buffer size as an argument
|
||||||
if ((buf_start == shared_phrase_buf) &&
|
if ((buf_start == shared_phrase_buf) &&
|
||||||
(buf - shared_phrase_buf > (ptrdiff_t) sizeof (shared_phrase_buf)))
|
(buf > shared_phrase_buf + sizeof (shared_phrase_buf)))
|
||||||
{
|
{
|
||||||
fprintf (stderr, "Error: shared_phrase_buf size exceeded,"
|
fprintf (stderr, "Error: shared_phrase_buf size exceeded,"
|
||||||
" please increase!\n");
|
" please increase!\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user