diff --git a/ogg123/flac_format.c b/ogg123/flac_format.c index 19bd5016..c44466ad 100644 --- a/ogg123/flac_format.c +++ b/ogg123/flac_format.c @@ -621,7 +621,7 @@ void print_flac_comments (FLAC__StreamMetadata_VorbisComment *f_comments, temp = realloc(temp, sizeof(char) * temp_len); } - strncpy(temp, f_comments->comments[i].entry, + strncpy(temp, (char *)f_comments->comments[i].entry, f_comments->comments[i].length); temp[f_comments->comments[i].length] = '\0'; diff --git a/ogg123/ogg123.c b/ogg123/ogg123.c index 4692955e..a70be1fe 100644 --- a/ogg123/ogg123.c +++ b/ogg123/ogg123.c @@ -706,7 +706,7 @@ void play (char *source_string) if (nthc-- == 0) { if (audio_buffer) { - if (!buffer_submit_data(audio_buffer, convbuffer, ret)) { + if (!buffer_submit_data(audio_buffer, (char *)convbuffer, ret)) { status_error(_("ERROR: buffer write failed.\n")); eof = eos = 1; break; diff --git a/oggenc/flac.c b/oggenc/flac.c index 2992e825..51a89754 100644 --- a/oggenc/flac.c +++ b/oggenc/flac.c @@ -366,7 +366,7 @@ void copy_comments (vorbis_comment *v_comments, FLAC__StreamMetadata_VorbisComme { char *comment = malloc(f_comments->comments[i].length + 1); memset(comment, '\0', f_comments->comments[i].length + 1); - strncpy(comment, f_comments->comments[i].entry, f_comments->comments[i].length); + strncpy(comment, (char *)f_comments->comments[i].entry, f_comments->comments[i].length); vorbis_comment_add(v_comments, comment); free(comment); } diff --git a/ogginfo/ogginfo2.c b/ogginfo/ogginfo2.c index f32d4d97..19d093a2 100644 --- a/ogginfo/ogginfo2.c +++ b/ogginfo/ogginfo2.c @@ -970,7 +970,9 @@ static void vorbis_start(stream_processor *stream) static void kate_start(stream_processor *stream) { +#ifdef HAVE_KATE misc_kate_info *info; +#endif stream->type = "kate"; stream->process_page = kate_process; @@ -978,9 +980,9 @@ static void kate_start(stream_processor *stream) stream->data = calloc(1, sizeof(misc_kate_info)); +#ifdef HAVE_KATE info = stream->data; -#ifdef HAVE_KATE kate_comment_init(&info->kc); kate_info_init(&info->ki); #endif