• 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
path.c 7.07 KB