1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 21:49:07 +00:00

Fix bug in $pid_openfiles

This commit is contained in:
Nikolas Garofil 2009-11-13 16:29:44 +01:00
parent bde5845077
commit e9d92ae717

View File

@ -282,6 +282,7 @@ void print_pid_openfiles(struct text_object *obj, char *p, int p_max_size) {
struct ll_string* files_back = NULL;
dir = opendir(obj->data.s);
if(dir != NULL) {
while ((entry = readdir(dir))) {
if(entry->d_name[0] != '.') {
snprintf(buf, p_max_size, "%s/%s", obj->data.s, entry->d_name);
@ -300,4 +301,7 @@ void print_pid_openfiles(struct text_object *obj, char *p, int p_max_size) {
closedir(dir);
freelist(files_front);
p[totallength - strlen("; ")] = 0;
} else {
p[0] = 0;
}
}