proc_test: use snprintf() instead of sprintf().