From: Christian Heller Date: Thu, 13 Nov 2014 20:47:06 +0000 (+0100) Subject: Server: Minor data type fix. X-Git-Tag: tce~607 X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/error?a=commitdiff_plain;h=6dbb8b2dc9c4e33081e5e1d21880f1d7968987a6;p=plomrogue Server: Minor data type fix. --- diff --git a/src/client/draw_wins.c b/src/client/draw_wins.c index 1a3c9ad..5b87646 100644 --- a/src/client/draw_wins.c +++ b/src/client/draw_wins.c @@ -325,7 +325,7 @@ static char * winconf_geom_helper(struct Win * win, char axis, char * sep, } char * p11 = ")"; uint8_t size = strlen(p0) + strlen(p1) + strlen(p2) + strlen(sep) - + strlen(p4) + strlen(sep) + strlen(p6) + strlen(value_prefix) + + strlen(p4) + strlen(sep) + strlen(p6) +strlen(value_prefix) + strlen(p8) + strlen(p9) + strlen(p10) + strlen(p11) + strlen(newlines); char * msg = try_malloc(size, __func__); diff --git a/src/server/run.c b/src/server/run.c index 708bd96..ea8d608 100644 --- a/src/server/run.c +++ b/src/server/run.c @@ -236,7 +236,7 @@ static int16_t * build_whitelist() static uint8_t thing_in_whitelist(uint8_t id, int16_t * whitelist) { - int16_t i; + uint16_t i; for (i = 0; -1 < whitelist[i]; i++) { if ((int16_t) id == whitelist[i])