diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-24 11:57:55 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-24 11:57:55 +0100 |
commit | bea663376a1113c3cf0519f7959cbdd693c8fbc0 (patch) | |
tree | 6b14068d95171e023177dd2ba2482d4d6115887d /src/port | |
parent | 8e3274f153f89ecf1611fa8468d2d7dbe596a23f (diff) | |
download | wolfbones-bea663376a1113c3cf0519f7959cbdd693c8fbc0.tar.gz wolfbones-bea663376a1113c3cf0519f7959cbdd693c8fbc0.tar.bz2 |
fix in strlcpy and strlcat, will rewrite them, there is no decent implementation out there!
Diffstat (limited to 'src/port')
-rw-r--r-- | src/port/string.c | 2 |
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; } |