--- src/message.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/message.c b/src/message.c index 7fc2145..0cb8ef1 100644 --- a/src/message.c +++ b/src/message.c @@ -467,7 +467,7 @@ size_t gg_message_text_to_html(char *dst, const char *src, gg_encoding_t encodin if (src[i] != 0) { if (dst != NULL) - sprintf(&dst[len], span_fmt, color[0], color[1], color[2]); + sprintf(&dst[len], span_fmt, (unsigned int) color[0], (unsigned int) color[1], (unsigned int) color[2]); len += span_len; in_span = 1; @@ -486,14 +486,14 @@ size_t gg_message_text_to_html(char *dst, const char *src, gg_encoding_t encodin if (((attr & GG_FONT_IMAGE) != 0) && (format_idx + 10 <= format_len)) { if (dst != NULL) { sprintf(&dst[len], img_fmt, - format_[format_idx + 9], - format_[format_idx + 8], - format_[format_idx + 7], - format_[format_idx + 6], - format_[format_idx + 5], - format_[format_idx + 4], - format_[format_idx + 3], - format_[format_idx + 2]); + (unsigned int) format_[format_idx + 9], + (unsigned int) format_[format_idx + 8], + (unsigned int) format_[format_idx + 7], + (unsigned int) format_[format_idx + 6], + (unsigned int) format_[format_idx + 5], + (unsigned int) format_[format_idx + 4], + (unsigned int) format_[format_idx + 3], + (unsigned int) format_[format_idx + 2]); } len += img_len; @@ -511,7 +511,7 @@ size_t gg_message_text_to_html(char *dst, const char *src, gg_encoding_t encodin if (!in_span) { if (dst != NULL) - sprintf(&dst[len], span_fmt, default_color[0], default_color[1], default_color[2]); + sprintf(&dst[len], span_fmt, (unsigned int) default_color[0], (unsigned int) default_color[1], (unsigned int) default_color[2]); len += span_len; in_span = 1; -- 1.7.6.1 _______________________________________________ libgadu-devel mailing list libgadu-devel@lists.ziew.org http://lists.ziew.org/mailman/listinfo/libgadu-devel