[PATCH] lib: string_helpers: fix potential snprintf() output truncation