• Max Kellermann's avatar
    added "length" parameter to validUtf8String() · 43c389b9
    Max Kellermann authored
    At several places, we create temporary copies of non-null-terminated
    strings, just to use them in functions like validUtf8String().  We can
    save this temporary allocation and avoid heap fragmentation if we
    add a length parameter instead of expecting a null-terminated string.
    43c389b9
utf8.c 3.41 KB