8f9a589f33
Add upstream bug fixes OBS-URL: https://build.opensuse.org/request/show/489860 OBS-URL: https://build.opensuse.org/package/show/graphics/gifsicle?expand=0&rev=5
14 lines
487 B
Diff
14 lines
487 B
Diff
diff --git a/src/support.c b/src/support.c
|
|
index ad4997b..2094b0a 100644
|
|
--- a/src/support.c
|
|
+++ b/src/support.c
|
|
@@ -314,7 +314,7 @@ safe_puts(const char *s, uint32_t len, FILE *f)
|
|
case '\v': fputs("\\v", f); break;
|
|
case '\\': fputs("\\\\", f); break;
|
|
case 0: if (len > 1) fputs("\\000", f); break;
|
|
- default: fprintf(f, "\\%03o", *s); break;
|
|
+ default: fprintf(f, "\\%03o", (unsigned char) *s); break;
|
|
}
|
|
}
|
|
if (last_safe != s) {
|