summaryrefslogtreecommitdiff
path: root/src/port/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/port/string.c')
-rw-r--r--src/port/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/port/string.c b/src/port/string.c
index 942e688..cd6a93f 100644
--- a/src/port/string.c
+++ b/src/port/string.c
@@ -153,7 +153,7 @@ size_t wolf_port_strlcat( char *d, const char *s, size_t bufsize ) {
if( len1+len2 >= bufsize ) {
len2 = bufsize - (len1+1);
}
- if( len2 >= 0 ) {
+ if( (int)len2 >= 0 ) {
memcpy( d+len1, s, len2 );
d[len1+len2] = 0;
}