Anonymous - 2011-09-29

in version 1.0.1-beta212

../../src/xtests/xtests.core.cpp: In function ‘size_t xtests::c::<unnamed>::xtests_strnlen_(const char*, size_t)’:
../../src/xtests/xtests.core.cpp:600:32: error: NULL used in arithmetic
../../src/xtests/xtests.core.cpp: In function ‘size_t xtests::c::<unnamed>::xtests_wcsnlen_(const wchar_t*, size_t)’:
../../src/xtests/xtests.core.cpp:615:32: error: NULL used in arithmetic
make: *** [xtests.pan.core.api.mt.debug.o] Error 1

this patch seems to fix things:

--- xtests.core.cpp.orig    2011-09-29 19:25:26.962318287 +0800
+++ xtests.core.cpp 2011-09-29 19:26:05.142573189 +0800
@@ -597,7 +597,7 @@
    {
        size_t n = 0;

-       for(; 0 != limit && NULL != *s; --limit, ++s)
+       for(; 0 != limit && *s != '\0'; --limit, ++s)
        {
            ++n;
        }
@@ -612,7 +612,7 @@
    {
        size_t n = 0;

-       for(; 0 != limit && NULL != *s; --limit, ++s)
+       for(; 0 != limit && *s != '\0'; --limit, ++s)
        {
            ++n;
        }