Thu Feb 11 13:16:37 PST 2010
- Previous message: [Slony1-commit] slony1-engine/src/slon misc.c
- Next message: [Slony1-commit] slony1-engine/src/slon misc.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/src/slon
In directory main.slony.info:/tmp/cvs-serv25701
Modified Files:
Tag: REL_1_2_STABLE
misc.c
Log Message:
Further mods to "outbuf abuse of sprintf()"
Index: misc.c
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/slon/misc.c,v
retrieving revision 1.22.2.5
retrieving revision 1.22.2.6
diff -C 2 -d -r1.22.2.5 -r1.22.2.6
*** misc.c 11 Feb 2010 21:13:24 -0000 1.22.2.5
--- misc.c 11 Feb 2010 21:16:35 -0000 1.22.2.6
***************
*** 164,168 ****
{
strftime(time_buf, sizeof(time_buf), log_timestamp_format, localtime(&stamp_time));
- sprintf(outbuf, "%s ", time_buf);
} else {
time_buf[0] = (char) 0;
--- 164,167 ----
***************
*** 170,174 ****
if (logpid == true)
{
! sprintf(outbuf, "%s[%d] ", outbuf, slon_pid);
} else {
ps_buf[0] = (char) 0;
--- 169,173 ----
if (logpid == true)
{
! sprintf(ps_buf, "[%d] ", slon_pid);
} else {
ps_buf[0] = (char) 0;
- Previous message: [Slony1-commit] slony1-engine/src/slon misc.c
- Next message: [Slony1-commit] slony1-engine/src/slon misc.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list