[srvx-commits] CVS: services/src log.c,1.56,1.57
Brought to you by:
entrope
|
From: Zoot <zo...@us...> - 2003-07-10 23:30:06
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv8291/src
Modified Files:
log.c
Log Message:
Find the size of the hostmask field correctly in audit log entries; this fixes a minor formatting error.
Index: log.c
===================================================================
RCS file: /cvsroot/srvx/services/src/log.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -r1.56 -r1.57
*** log.c 10 Jul 2003 23:06:22 -0000 1.56
--- log.c 10 Jul 2003 23:30:02 -0000 1.57
***************
*** 480,484 ****
}
if (flags & AUDIT_HOSTMASK) {
! size = sprintf(str_next, "%s@%s", user->ident, user->hostname);
entry->user_hostmask = str_next;
str_next += size;
--- 480,484 ----
}
if (flags & AUDIT_HOSTMASK) {
! size = sprintf(str_next, "%s@%s", user->ident, user->hostname) + 1;
entry->user_hostmask = str_next;
str_next += size;
|