summaryrefslogtreecommitdiff
path: root/sql/sp_cache.cc
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-10-06 17:37:24 -0700
committerunknown <jimw@mysql.com>2005-10-06 17:37:24 -0700
commit0559483cec2d4f32d4ce21d2a6f099594f3cba50 (patch)
treea93fd01c0c22a95ed76a61b6d20ae5079b6a6ce3 /sql/sp_cache.cc
parent979446f356ce0ad3c388a2cca5dd39bad59a9243 (diff)
downloadmariadb-git-0559483cec2d4f32d4ce21d2a6f099594f3cba50.tar.gz
Fix use of "%*s" *printf() specifiers that were really meant to be
"%.*s". (Bug #13650) sql/sp.cc: Fix print specifiers for strings. %*s sets the minimum width of the string from a variable, %.*s sets the maximum width. sql/sp_cache.cc: Fix print specifiers for strings. %*s sets the minimum width of the string from a variable, %.*s sets the maximum width. sql/sp_head.cc: Fix print specifiers for strings. %*s sets the minimum width of the string from a variable, %.*s sets the maximum width.
Diffstat (limited to 'sql/sp_cache.cc')
-rw-r--r--sql/sp_cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sp_cache.cc b/sql/sp_cache.cc
index 495f969eeac..fea6a67f32c 100644
--- a/sql/sp_cache.cc
+++ b/sql/sp_cache.cc
@@ -132,7 +132,7 @@ void sp_cache_insert(sp_cache **cp, sp_head *sp)
return; // End of memory error
c->version= Cversion; // No need to lock when reading long variable
}
- DBUG_PRINT("info",("sp_cache: inserting: %*s", sp->m_qname.length,
+ DBUG_PRINT("info",("sp_cache: inserting: %.*s", sp->m_qname.length,
sp->m_qname.str));
c->insert(sp);
*cp= c; // Update *cp if it was NULL