Closed GoogleCodeExporter closed 9 years ago
Accepted
Original comment by kobalicek.petr
on 23 Nov 2009 at 10:55
Fixed in my local copy, will be commited later
Original comment by kobalicek.petr
on 27 Nov 2009 at 8:35
Should be fixed, please verify
Original comment by kobalicek.petr
on 12 Dec 2009 at 2:10
Ok, no problem anymore
Original comment by niels.pf...@gmail.com
on 12 Dec 2009 at 2:44
According to
http://pubs.opengroup.org/onlinepubs/9699919799/functions/strlen.html the
implementation of nlen should return maxlen rather -1 if null is not
encountered.
Original comment by partow
on 19 Dec 2010 at 7:10
Since r259 nlen looks like that:
FOG_INLINE sysuint_t nlen(const char* str, sysuint_t maxlen)
{
const char* p = str;
if (!p) return 0;
const char* end = str + maxlen;
while (p < end && *p) p++;
return (sysuint_t)(p - str);
}
That's ok, right?
Original comment by niels.pf...@gmail.com
on 19 Dec 2010 at 8:13
That's okay.
I think we should export these functions and make optimized non-inlined
variants. After my commit I'd like to solve this.
I temporary reopened this to make this visible
Original comment by kobalicek.petr
on 5 Feb 2011 at 1:59
This is definitely fixed, because Fog contains now own strnlen functionality.
Original comment by kobalicek.petr
on 10 Oct 2011 at 7:36
Original issue reported on code.google.com by
niels.pf...@gmail.com
on 23 Nov 2009 at 12:04