summaryrefslogtreecommitdiff
path: root/server-tools/instance-manager/log.cc
diff options
context:
space:
mode:
authorunknown <petr@mysql.com>2005-06-07 15:47:02 +0400
committerunknown <petr@mysql.com>2005-06-07 15:47:02 +0400
commit4a43eccac6915afbe251aa097e1506549e15dab0 (patch)
tree6c3e68bd97165c358c335511049bee834e49d598 /server-tools/instance-manager/log.cc
parent26f03563f724b1bcab931d1120a56825135ce24c (diff)
downloadmariadb-git-4a43eccac6915afbe251aa097e1506549e15dab0.tar.gz
post-review fixes
server-tools/instance-manager/commands.cc: remove commented out code server-tools/instance-manager/instance.cc: use flag instead of int variable server-tools/instance-manager/instance.h: no more default values server-tools/instance-manager/instance_map.cc: use flag to be more verbose server-tools/instance-manager/instance_options.cc: don't read options when looking for an option, use strmake instead of strchr server-tools/instance-manager/instance_options.h: fix comment, use flag instead of int value server-tools/instance-manager/listener.cc: don't like c++ comments server-tools/instance-manager/log.cc: safety: strmake adds trailing zero to the string server-tools/instance-manager/parse_output.cc: use strmake instead of strncpy, renamed varianles to make code more readable server-tools/instance-manager/parse_output.h: get rid of default value
Diffstat (limited to 'server-tools/instance-manager/log.cc')
-rw-r--r--server-tools/instance-manager/log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/server-tools/instance-manager/log.cc b/server-tools/instance-manager/log.cc
index 88d777eeeb6..3c18d2816bf 100644
--- a/server-tools/instance-manager/log.cc
+++ b/server-tools/instance-manager/log.cc
@@ -76,7 +76,7 @@ static inline void log(FILE *file, const char *format, va_list args)
if (buff_msg == 0)
{
strmake(buff_stack, "log(): message is too big, my_malloc() failed",
- sizeof(buff_stack));
+ sizeof(buff_stack) - 1);
buff_msg= buff_stack;
break;
}