More strcat, sprintf, and strcpy replacements.

This commit is contained in:
rocky
2006-03-18 01:28:13 +00:00
parent df4da91a06
commit bcd670d1c6
5 changed files with 23 additions and 21 deletions

View File

@@ -1154,16 +1154,16 @@ main(int argc,char *argv[])
if(file[0]=='\0'){
switch (output_type) {
case 0: /* raw */
strcat(outfile_name, "cdda.raw");
strncat(outfile_name, "cdda.raw", sizeof("cdda.raw"));
break;
case 1:
strcat(outfile_name, "cdda.wav");
strncat(outfile_name, "cdda.wav", sizeof("cdda.wav"));
break;
case 2:
strcat(outfile_name, "cdda.aifc");
strncat(outfile_name, "cdda.aifc", sizeof("cdda.aifc"));
break;
case 3:
strcat(outfile_name, "cdda.aiff");
strncat(outfile_name, "cdda.aiff", sizeof("cdda.aiff"));
break;
}
}
@@ -1185,16 +1185,16 @@ main(int argc,char *argv[])
switch(output_type){
case 0: /* raw */
strcat(outfile_name,"cdda.raw");
strncat(outfile_name, "cdda.raw", sizeof("cdda.raw"));
break;
case 1:
strcat(outfile_name,"cdda.wav");
strncat(outfile_name, "cdda.wav", sizeof("cdda.wav"));
break;
case 2:
strcat(outfile_name,"cdda.aifc");
strncat(outfile_name, "cdda.aifc", sizeof("cdda.aifc"));
break;
case 3:
strcat(outfile_name,"cdda.aiff");
strncat(outfile_name, "cdda.aiff", sizeof("cdda.aiff"));
break;
}