From: Date: October 24 2006 8:37pm Subject: bk commit into 5.0 tree (lzhou:1.2259) BUG#21052 List-Archive: http://lists.mysql.com/commits/14239 X-Bug: 21052 Message-Id: <200610241837.k9OIb2dY025393@dev3-138.dev.cn.tlan> Below is the list of changes that have just been committed into a local 5.0 repository of root. When root does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2006-10-24 18:36:57+00:00, lzhou@stripped +1 -0 BUG#21052 Modify the overflow error existed in last patch ndb/src/mgmsrv/Services.cpp@stripped, 2006-10-24 18:36:55+00:00, lzhou@stripped +5 -2 Modify the overflow error existed in last patch # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: lzhou # Host: dev3-138.dev.cn.tlan # Root: /home/zhl/mysql/mysql-5.0/bug21052 --- 1.70/ndb/src/mgmsrv/Services.cpp 2006-10-24 18:37:03 +00:00 +++ 1.71/ndb/src/mgmsrv/Services.cpp 2006-10-24 18:37:03 +00:00 @@ -1356,8 +1356,11 @@ if(strcmp(ndb_logevent_body[i].token,"error") == 0) { int m_text_len= strlen(m_text); - snprintf(m_text+m_text_len, 4 , " - "); - ndb_error_string(theData[3], m_text+(m_text_len+3), sizeof(m_text)-m_text_len-3); + if(sizeof(m_text)-m_text_len-3 > 0) + { + BaseString::snprintf(m_text+m_text_len, 4 , " - "); + ndb_error_string(val, m_text+(m_text_len+3), sizeof(m_text)-m_text_len-3); + } } }