update a hidden bug in hook_snprintf.c