diff options
Diffstat (limited to 'src/conversation/gnunet-helper-audio-record.c')
-rw-r--r-- | src/conversation/gnunet-helper-audio-record.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/conversation/gnunet-helper-audio-record.c b/src/conversation/gnunet-helper-audio-record.c index 73f4cfda3..82bb6d5b3 100644 --- a/src/conversation/gnunet-helper-audio-record.c +++ b/src/conversation/gnunet-helper-audio-record.c | |||
@@ -300,8 +300,8 @@ write_page (ogg_page *og) | |||
300 | size_t msg_size; | 300 | size_t msg_size; |
301 | msg_size = sizeof (struct AudioMessage) + og->header_len + og->body_len; | 301 | msg_size = sizeof (struct AudioMessage) + og->header_len + og->body_len; |
302 | audio_message->header.size = htons ((uint16_t) msg_size); | 302 | audio_message->header.size = htons ((uint16_t) msg_size); |
303 | memcpy (&audio_message[1], og->header, og->header_len); | 303 | GNUNET_memcpy (&audio_message[1], og->header, og->header_len); |
304 | memcpy (((char *) &audio_message[1]) + og->header_len, og->body, og->body_len); | 304 | GNUNET_memcpy (((char *) &audio_message[1]) + og->header_len, og->body, og->body_len); |
305 | 305 | ||
306 | toff += msg_size; | 306 | toff += msg_size; |
307 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 307 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -330,7 +330,7 @@ packetizer () | |||
330 | 330 | ||
331 | while (transmit_buffer_length >= transmit_buffer_index + pcm_length) | 331 | while (transmit_buffer_length >= transmit_buffer_index + pcm_length) |
332 | { | 332 | { |
333 | memcpy (pcm_buffer, | 333 | GNUNET_memcpy (pcm_buffer, |
334 | &transmit_buffer[transmit_buffer_index], | 334 | &transmit_buffer[transmit_buffer_index], |
335 | pcm_length); | 335 | pcm_length); |
336 | transmit_buffer_index += pcm_length; | 336 | transmit_buffer_index += pcm_length; |
@@ -428,7 +428,7 @@ stream_read_callback (pa_stream * s, | |||
428 | { | 428 | { |
429 | transmit_buffer = pa_xrealloc (transmit_buffer, | 429 | transmit_buffer = pa_xrealloc (transmit_buffer, |
430 | transmit_buffer_length + length); | 430 | transmit_buffer_length + length); |
431 | memcpy (&transmit_buffer[transmit_buffer_length], | 431 | GNUNET_memcpy (&transmit_buffer[transmit_buffer_length], |
432 | data, | 432 | data, |
433 | length); | 433 | length); |
434 | transmit_buffer_length += length; | 434 | transmit_buffer_length += length; |
@@ -436,7 +436,7 @@ stream_read_callback (pa_stream * s, | |||
436 | else | 436 | else |
437 | { | 437 | { |
438 | transmit_buffer = pa_xmalloc (length); | 438 | transmit_buffer = pa_xmalloc (length); |
439 | memcpy (transmit_buffer, data, length); | 439 | GNUNET_memcpy (transmit_buffer, data, length); |
440 | transmit_buffer_length = length; | 440 | transmit_buffer_length = length; |
441 | transmit_buffer_index = 0; | 441 | transmit_buffer_index = 0; |
442 | } | 442 | } |
@@ -686,7 +686,7 @@ ogg_init () | |||
686 | const char *opusver; | 686 | const char *opusver; |
687 | int vendor_length; | 687 | int vendor_length; |
688 | 688 | ||
689 | memcpy (headpacket.magic, "OpusHead", 8); | 689 | GNUNET_memcpy (headpacket.magic, "OpusHead", 8); |
690 | headpacket.version = 1; | 690 | headpacket.version = 1; |
691 | headpacket.channels = CHANNELS; | 691 | headpacket.channels = CHANNELS; |
692 | headpacket.preskip = GNUNET_htole16 (0); | 692 | headpacket.preskip = GNUNET_htole16 (0); |
@@ -723,9 +723,9 @@ ogg_init () | |||
723 | exit (5); | 723 | exit (5); |
724 | } | 724 | } |
725 | 725 | ||
726 | memcpy (commentspacket->magic, "OpusTags", 8); | 726 | GNUNET_memcpy (commentspacket->magic, "OpusTags", 8); |
727 | commentspacket->vendor_length = GNUNET_htole32 (vendor_length); | 727 | commentspacket->vendor_length = GNUNET_htole32 (vendor_length); |
728 | memcpy (&commentspacket[1], opusver, vendor_length); | 728 | GNUNET_memcpy (&commentspacket[1], opusver, vendor_length); |
729 | *(uint32_t *) &((char *) &commentspacket[1])[vendor_length] = \ | 729 | *(uint32_t *) &((char *) &commentspacket[1])[vendor_length] = \ |
730 | GNUNET_htole32 (0); /* no tags */ | 730 | GNUNET_htole32 (0); /* no tags */ |
731 | 731 | ||