mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-22 13:23:32 +02:00
Mixing signed and unsigned quantities in MIN() upset GCC's tender soul.
This commit is contained in:
parent
f73fb9f8d0
commit
88590bcaaf
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ build_hostname(char *buf, size_t buflen,
|
|||
size_t space;
|
||||
char *b;
|
||||
|
||||
space = MIN(maxlen, buflen) - strlen(topdomain) - 8;
|
||||
space = MIN((size_t)maxlen, buflen) - strlen(topdomain) - 8;
|
||||
/* 8 = 5 max header length + 1 dot before topdomain + 2 safety */
|
||||
|
||||
if (!encoder->places_dots())
|
||||
|
|
Loading…
Reference in a new issue