summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}