lkml.org 
[lkml]   [1999]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[OT] Re: PROBLEM: Wrong entry in file '/proc/stat' causes 'kpm' (from KDE) to crash
Tom Eastep wrote:

> --- kdeutils-1.1/kpm/proc.C~ Tue Nov 10 12:41:05 1998
> +++ kdeutils-1.1/kpm/proc.C Sat Feb 20 08:59:45 1999
> @@ -59,8 +59,8 @@
> int Procinfo::readproc(int proc_pid)
> {
> char path[256];
> - char buf[256];
> - char sbuf[384]; // should be enough to acommodate /proc/X/stat
> + char buf[1024];
> + char sbuf[1024]; // should be enough to acommodate /proc/X/stat
> char cmdbuf[MAX_CMD_LEN];

Methinks this is the only patch fragment I've ever seen that qualifies as high
brow satire ;).

m.

--
"We can deny everything, except that we have the possibility of being better.
Simply reflect on that."
-- His Holiness The Dalai Lama

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.029 / U:0.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site