summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2009-10-26 02:57:00 +0000
committerDimitri Sokolyuk <demon@dim13.org>2009-10-26 02:57:00 +0000
commit03d7b01bc7abadfc02109ca76725f2c505615120 (patch)
tree79d502c2286d199b40af5940c24001f9d96a234b
parentb8d8ee2340c82a2859dc2a55aa0c5fd31058790f (diff)
add missing header, make gcc happy
-rw-r--r--7seg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/7seg.c b/7seg.c
index 280c459..e92da5f 100644
--- a/7seg.c
+++ b/7seg.c
@@ -17,6 +17,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
char allowed[] = "0123456789:.-";
@@ -50,7 +51,7 @@ sevenseg(char *s)
t[i] = calloc(sz, sizeof(char));
for (p = s; *p; p++) {
if (strchr(allowed, *p) != NULL)
- strlcat(t[i], seg[*p][i], sz);
+ strlcat(t[i], seg[(int)*p][i], sz);
}
}