From aa761584db3f9d6f34db7dc18d8fce71e2215e5c Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Wed, 11 Nov 2009 13:44:50 +0100 Subject: [PATCH] fix previous commit --- src/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proc.c b/src/proc.c index 3a32511b..88a5e353 100644 --- a/src/proc.c +++ b/src/proc.c @@ -55,7 +55,7 @@ void print_pid(struct text_object *obj, char *p, int p_max_size) infofile = fopen(obj->data.s, "r"); if(infofile) { bytes_read = fread(buf, 1, p_max_size, infofile); - for(i = 0; i < read-1; i++) { + for(i = 0; i < bytes_read-1; i++) { if(buf[i] == 0) { buf[i] = ' '; }