From 2e3b527ba860067ba4a363cb6a8579eb3fe3a48e Mon Sep 17 00:00:00 2001 From: Hannes Date: Fri, 13 Jan 2012 03:58:40 +0100 Subject: [PATCH] bug behoben --- headeredit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headeredit.cpp b/headeredit.cpp index 8c13cdb..5618a08 100644 --- a/headeredit.cpp +++ b/headeredit.cpp @@ -35,6 +35,6 @@ main() new_data[3] = (unsigned char) samples; printf("value: %#x\n", (unsigned char)samples); //memcpy(&new_data[0], &samples, sizeof(int)); - memcpy(&new_data[4], &data[58], samples_old); + memcpy(&new_data[4], &data[old_header_size], samples_old); fwrite(&new_data[0], sizeof(unsigned char), samples_old+headersize, o); } \ No newline at end of file