patch-1.3.74 linux/kernel/sys.c

Next file: linux/mm/filemap.c
Previous file: linux/ipc/shm.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.73/linux/kernel/sys.c linux/kernel/sys.c
@@ -290,7 +290,7 @@
 
    if (acct_active) {
       strncpy(ac.ac_comm, current->comm, ACCT_COMM);
-      ac.ac_comm[ACCT_COMM] = '\0';
+      ac.ac_comm[ACCT_COMM-1] = '\0';
       ac.ac_utime = current->utime;
       ac.ac_stime = current->stime;
       ac.ac_btime = CT_TO_SECS(current->start_time) + (xtime.tv_sec - (jiffies / HZ));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this