diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/combine_wave/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/combine_wave/files')
-rw-r--r-- | media-sound/combine_wave/files/combine_wave-0.3.1-overflow.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/media-sound/combine_wave/files/combine_wave-0.3.1-overflow.patch b/media-sound/combine_wave/files/combine_wave-0.3.1-overflow.patch new file mode 100644 index 000000000000..ee7fe38da458 --- /dev/null +++ b/media-sound/combine_wave/files/combine_wave-0.3.1-overflow.patch @@ -0,0 +1,26 @@ +diff --git a/combine_wave.c b/combine_wave.c +index 5bfa4aa..391db25 100644 +--- a/combine_wave.c ++++ b/combine_wave.c +@@ -601,9 +601,9 @@ for(i = 0; i < header_size; i++) + *ptr = 0; + ptr++; + } +-strcpy(out_header -> main_chunk, "RIFF"); +-strcpy(out_header -> chunk_type, "WAVE"); +-strcpy(out_header -> sub_chunk, "fmt "); ++memcpy(out_header -> main_chunk, "RIFF", 4); ++memcpy(out_header -> chunk_type, "WAVE", 4); ++memcpy(out_header -> sub_chunk, "fmt ", 4); + out_header -> length_chunk = 16; //always 16 + out_header -> format = 1; //PCM + +@@ -622,7 +622,7 @@ else + + out_header -> sample_fq = left_header -> sample_fq; + out_header -> bit_p_spl = 16; // left_header -> bit_p_spl; +-strcpy(out_header -> data_chunk, "data"); ++memcpy(out_header -> data_chunk, "data", 4); + + if(right_header -> data_length > left_header -> data_length) + { |