Fix minor logical error in string length (found by asan)
Fix minor logical error in string length (found by asan)

lgritz/oiio,OpenImageIO/oiio,lgritz/oiio,OpenImageIO/oiio,lgritz/oiio,lgritz/oiio,OpenImageIO/oiio,OpenImageIO/oiio