mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-10 16:08:31 +00:00
fix tiny compile problem
This commit is contained in:
parent
65cf0439a0
commit
db99693091
@ -50,11 +50,11 @@ void print_pid(struct text_object *obj, char *p, int p_max_size)
|
|||||||
{
|
{
|
||||||
char buf[p_max_size];
|
char buf[p_max_size];
|
||||||
FILE* infofile;
|
FILE* infofile;
|
||||||
int i, read;
|
int i, bytes_read;
|
||||||
|
|
||||||
infofile = fopen(obj->data.s, "r");
|
infofile = fopen(obj->data.s, "r");
|
||||||
if(infofile) {
|
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++) {
|
for(i = 0; i < read-1; i++) {
|
||||||
if(buf[i] == 0) {
|
if(buf[i] == 0) {
|
||||||
buf[i] = ' ';
|
buf[i] = ' ';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user