diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-18 02:37:53 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-18 02:37:53 (EDT) |
commit | f0351693ac1558505cf15c61c3ea4a1f12c3d67b (patch) | |
tree | b0e82273776e0ec9db8a904e4a9f2b1c7d529b00 /src/sgr.c | |
parent | 0b9687372282752f586af875f688d634648a5fda (diff) |
text_*(), font_*(), sgr(): Convert to unsigned char
Diffstat (limited to 'src/sgr.c')
-rw-r--r-- | src/sgr.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; } |