summaryrefslogtreecommitdiffstats
path: root/src/sgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sgr.c')
-rw-r--r--src/sgr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sgr.c b/src/sgr.c
index 9e77f18..9faa117 100644
--- a/src/sgr.c
+++ b/src/sgr.c
@@ -48,11 +48,11 @@ static png_color _4bit[] = {
/* TODO: Add 8-bit and 24-bit modes. */
void
-sgr(char *param, png_colorp fg, png_colorp bg)
+sgr(unsigned char *param, png_colorp fg, png_colorp bg)
{
- int end;
- char *p;
- int i;
+ int end;
+ unsigned char *p;
+ int i;
end = 0;
for (p = param; param; ++param) {
@@ -62,7 +62,7 @@ sgr(char *param, png_colorp fg, png_colorp bg)
}
*param = '\0';
if (*p) {
- i = atoi(p);
+ i = atoi((char *) p);
} else {
i = 0;
}