diff options
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/d_soundfile.c')
-rw-r--r-- | apps/plugins/pdbox/PDa/src/d_soundfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/PDa/src/d_soundfile.c b/apps/plugins/pdbox/PDa/src/d_soundfile.c index 3824cd5c37..9053edc86b 100644 --- a/apps/plugins/pdbox/PDa/src/d_soundfile.c +++ b/apps/plugins/pdbox/PDa/src/d_soundfile.c | |||
@@ -281,7 +281,7 @@ int open_soundfile(const char *dirname, const char *filename, int headersize, | |||
281 | nchannels = 1; | 281 | nchannels = 1; |
282 | bytespersamp = 2; | 282 | bytespersamp = 2; |
283 | /* copy the first chunk header to beginnning of buffer. */ | 283 | /* copy the first chunk header to beginnning of buffer. */ |
284 | memcpy(buf, buf + headersize, sizeof(t_wavechunk)); | 284 | memmove(buf, buf + headersize, sizeof(t_wavechunk)); |
285 | /* post("chunk %c %c %c %c", | 285 | /* post("chunk %c %c %c %c", |
286 | ((t_wavechunk *)buf)->wc_id[0], | 286 | ((t_wavechunk *)buf)->wc_id[0], |
287 | ((t_wavechunk *)buf)->wc_id[1], | 287 | ((t_wavechunk *)buf)->wc_id[1], |
@@ -338,7 +338,7 @@ int open_soundfile(const char *dirname, const char *filename, int headersize, | |||
338 | nchannels = 1; | 338 | nchannels = 1; |
339 | bytespersamp = 2; | 339 | bytespersamp = 2; |
340 | /* copy the first chunk header to beginnning of buffer. */ | 340 | /* copy the first chunk header to beginnning of buffer. */ |
341 | memcpy(buf, buf + headersize, sizeof(t_datachunk)); | 341 | memmove(buf, buf + headersize, sizeof(t_datachunk)); |
342 | /* read chunks in loop until we get to the data chunk */ | 342 | /* read chunks in loop until we get to the data chunk */ |
343 | while (strncmp(((t_datachunk *)buf)->dc_id, "SSND", 4)) | 343 | while (strncmp(((t_datachunk *)buf)->dc_id, "SSND", 4)) |
344 | { | 344 | { |