use sprintf(), not strcat()