diff options
Diffstat (limited to 'src/sgr.c')
-rw-r--r-- | src/sgr.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -26,6 +26,9 @@ #include <png.h> +#include "i18n.h" +#include "output.h" + static png_color _4bit[] = { { 0, 0, 0}, /* Black */ {170, 0, 0}, /* Red */ @@ -87,6 +90,7 @@ sgr(unsigned char *param, png_colorp fg, png_colorp bg) } p = param + 1; } else if (*param < '0' || *param > '9') { + error(_("Invalid SGR parameter \"%s\""), p); break; } } |