Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ogg123/flac_format.c
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion ogg123/ogg123.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion oggenc/flac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 3 additions & 1 deletion ogginfo/ogginfo2.c
Original file line number Diff line number Diff line change
Expand Up @@ -970,17 +970,19 @@ 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;
stream->process_end = kate_end;

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
Expand Down