r49: Changed sprintf to snprintf