Reverse out addition of snprintf.

This commit is contained in:
Bruce Momjian 1998-10-28 02:57:59 +00:00
parent 997966061e
commit 8386c8145c
1 changed files with 4 additions and 8 deletions

View File

@ -108,8 +108,7 @@ tprintf(int flag, const char *fmt,...)
#ifdef ELOG_TIMESTAMPS
strcpy(line, tprintf_timestamp());
#endif
vsnprintf(line + TIMESTAMP_SIZE, ELOG_MAXLEN,
fmt, ap);
vsprintf(line + TIMESTAMP_SIZE, fmt, ap);
va_end(ap);
#ifdef USE_SYSLOG
@ -139,8 +138,7 @@ tprintf1(const char *fmt, ... )
#ifdef ELOG_TIMESTAMPS
strcpy(line, tprintf_timestamp());
#endif
vsnprintf(line+TIMESTAMP_SIZE, ELOG_MAXLEN,
fmt, ap);
vsprintf(line+TIMESTAMP_SIZE, fmt, ap);
va_end(ap);
#ifdef USE_SYSLOG
@ -168,8 +166,7 @@ eprintf(const char *fmt,...)
#ifdef ELOG_TIMESTAMPS
strcpy(line, tprintf_timestamp());
#endif
vsnprintf(line + TIMESTAMP_SIZE, ELOG_MAXLEN,
fmt, ap);
vsprintf(line + TIMESTAMP_SIZE, fmt, ap);
va_end(ap);
#ifdef USE_SYSLOG
@ -347,8 +344,7 @@ read_pg_options(SIGNAL_ARGS)
return;
}
snprintf(buffer, BUF_SIZE - 1,
"%s/%s", DataDir, "pg_options");
sprintf(buffer, "%s/%s", DataDir, "pg_options");
if ((fd = open(buffer, O_RDONLY)) < 0)
return;