[PATCH 6.1 018/379] string: Adjust strtomem() logic to allow for smaller sources