Fix number of arguments to sprintf