1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-05 21:07:52 +00:00

Merge branch 'master' of git.omp.am:/home/omp/git/conky

This commit is contained in:
Cesare Tirabassi 2009-11-13 16:36:49 +01:00
commit f1272dbd31

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;
}
}