Removed any sprintf/strcpy call and use snprintf/strncpy - Fixed bug with tblspc_dir - added debug messages after every query

This commit is contained in:
Gabriele Bartolini
2010-12-30 00:31:51 +01:00
committed by Greg Smith
parent 716a0ae9d3
commit 3f1c6a5852
4 changed files with 102 additions and 77 deletions

4
log.c
View File

@@ -80,7 +80,9 @@ bool logger_init(const char* ident, const char* level, const char* facility)
if (f == 0) {
/* No syslog requested, just stderr */
stderr_log_notice(_("Use stderr for logging\n"));
#ifdef REPMGR_DEBUG
printf(_("Use stderr for logging\n"));
#endif
return true;
}
else if (f == -1) {