From 03cc03de9fa8f332b1400f12ff884a8dc7e4aa6a Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 26 Jul 2010 12:11:51 +0000 Subject: [PATCH] Fix a cast. --- errlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/errlog.c b/errlog.c index 7a2cdd05..d73bbbfc 100644 --- a/errlog.c +++ b/errlog.c @@ -1,4 +1,4 @@ -const char errlog_rcs[] = "$Id: errlog.c,v 1.108 2010/07/26 11:28:11 fabiankeil Exp $"; +const char errlog_rcs[] = "$Id: errlog.c,v 1.109 2010/07/26 11:30:09 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/errlog.c,v $ @@ -811,7 +811,7 @@ void log_error(int loglevel, const char *fmt, ...) else { int ret = snprintf(outbuf + length, - log_buffer_size - length - 2, "\\x%.2x", (int)*sval); + log_buffer_size - length - 2, "\\x%.2x", (unsigned char)*sval); assert(ret == 4); length += 4; } -- 2.39.2