const char *args;
};
-static unsigned short int delay;
-
static char *smprintf(const char *, ...);
static char *battery_perc(const char *);
static char *cpu_perc(void);
static char *wifi_perc(const char *);
static char *wifi_essid(const char *);
+static unsigned short int delay;
static Display *dpy;
#include "config.h"
fgets(hostname, sizeof(hostname), fp);
/* FIXME: needs improvement */
- memset(&hostname[strlen(hostname)-1], '\0',
+ memset(&hostname[strlen(hostname)], '\0',
sizeof(hostname) - strlen(hostname));
fclose(fp);