switching to standard snprintf instead of strl* functions