fix gcc-4 warnings

This commit is contained in:
Bill Currie 2005-06-15 22:20:40 +00:00
parent 13e8b00da5
commit a2f0cd94e8
1 changed files with 2 additions and 2 deletions

View File

@ -429,9 +429,9 @@ get_info (flacfile_t *ff)
for (i = 0, ve = vc->comments; i < vc->num_comments; ve++, i++) { for (i = 0, ve = vc->comments; i < vc->num_comments; ve++, i++) {
Sys_DPrintf ("%.*s\n", ve->length, ve->entry); Sys_DPrintf ("%.*s\n", ve->length, ve->entry);
if (strncmp ("CUEPOINT=", ve->entry, 9) == 0) { if (strncmp ("CUEPOINT=", (char *) ve->entry, 9) == 0) {
char *str = alloca (ve->length + 1); char *str = alloca (ve->length + 1);
strncpy (str, ve->entry, ve->length); strncpy (str, (char *) ve->entry, ve->length);
str[ve->length] = 0; str[ve->length] = 0;
sscanf (str + 9, "%d %d", &sample_start, &sample_count); sscanf (str + 9, "%d %d", &sample_start, &sample_count);
} }