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:
meep-eep
2006-01-18 03:37:11 +00:00
parent e8141b841a
commit 6cae0f2437
+1 -1
View File
@@ -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");