diff --git a/api/epplet.c b/api/epplet.c index 7e6e3f1..bb991dc 100644 --- a/api/epplet.c +++ b/api/epplet.c @@ -5748,11 +5748,10 @@ Epplet_load_config_file(const char *file) if ((f = fopen(file, "r")) == NULL) return; - *s2 = 0; for (; fgets(s, sizeof(s), f);) { - *((int *)s2) = *((int *)s3) = 0; /* Set first 4 bytes to nil */ - sscanf(s, "%s %[^\n]\n", (char *)&s2, (char *)&s3); + s2[0] = s3[0] = '\0'; + sscanf(s, "%s %[^\n]\n", s2, s3); if (!(*s2) || (!*s3) || (*s2 == '\n') || (*s2 == '#')) { continue; diff --git a/epplets/E-Xss.c b/epplets/E-Xss.c index ba08198..121dff9 100644 --- a/epplets/E-Xss.c +++ b/epplets/E-Xss.c @@ -281,7 +281,7 @@ static void config_cb(void *data) { char buff[128]; - unsigned long h, y, i; + unsigned int h, y, i; if (config_win) { diff --git a/epplets/cloak.c b/epplets/cloak.c index 04cc0ba..e0ce642 100644 --- a/epplets/cloak.c +++ b/epplets/cloak.c @@ -1207,7 +1207,7 @@ void set_col_pixel(int x, int y, unsigned char c, unsigned char rrr, unsigned char ggg, unsigned char bbb) { - char *ptr; + unsigned char *ptr; if ((((int)c) == 0) || (x < 0) || (y < 0) || (x > 39) || (y > 39)) return; diff --git a/epplets/esdcloak.c b/epplets/esdcloak.c index 677d616..2d04c55 100644 --- a/epplets/esdcloak.c +++ b/epplets/esdcloak.c @@ -831,7 +831,7 @@ static void set_col_pixel(int x, int y, unsigned char c, unsigned char rrr, unsigned char ggg, unsigned char bbb) { - char *ptr; + unsigned char *ptr; if ((((int)c) == 0) || (x < 0) || (y < 0) || (x > 39) || (y > 39)) return;