Mailing List Archive

cvs commit: apache/src http_main.c
marc 97/06/28 17:03:18

Modified: src http_main.c
Log:
Fix lockfile directive change; ap_snprintf always null terminates,
unlike strncpy.

Revision Changes Path
1.166 +1 -2 apache/src/http_main.c

Index: http_main.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_main.c,v
retrieving revision 1.165
retrieving revision 1.166
diff -C3 -r1.165 -r1.166
*** http_main.c 1997/06/28 23:57:56 1.165
--- http_main.c 1997/06/29 00:03:17 1.166
***************
*** 208,215 ****
{
char buf[20];

! ap_snprintf( buf, sizeof(buf)-1, ".%u", getpid() );
! buf[sizeof(buf)-1] = 0;
lock_fname = pstrcat (p, server_root_relative (p, lock_fname), buf, NULL);
}
#endif
--- 208,214 ----
{
char buf[20];

! ap_snprintf( buf, sizeof(buf), ".%u", getpid() );
lock_fname = pstrcat (p, server_root_relative (p, lock_fname), buf, NULL);
}
#endif