projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65cf043
)
fix tiny compile problem
author
Nikolas Garofil
<garo@dunaldi.garofil.be>
Wed, 11 Nov 2009 12:43:14 +0000
(13:43 +0100)
committer
Nikolas Garofil
<garo@dunaldi.garofil.be>
Wed, 11 Nov 2009 12:43:14 +0000
(13:43 +0100)
src/proc.c
patch
|
blob
|
history
diff --git
a/src/proc.c
b/src/proc.c
index
2d532ca
..
3a32511
100644
(file)
--- a/
src/proc.c
+++ b/
src/proc.c
@@
-50,11
+50,11
@@
void print_pid(struct text_object *obj, char *p, int p_max_size)
{
char buf[p_max_size];
FILE* infofile;
- int i, read;
+ int i, bytes_read;
infofile = fopen(obj->data.s, "r");
if(infofile) {
- read = fread(buf, 1, p_max_size, infofile);
+ bytes_read = fread(buf, 1, p_max_size, infofile);
for(i = 0; i < read-1; i++) {
if(buf[i] == 0) {
buf[i] = ' ';