Changeset ebf96de


Ignore:
Timestamp:
Dec 26, 2023, 7:41:57 PM (11 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
master
Children:
c37f6ec
Parents:
5c3cdc8
Message:

[sink_apple_audio] use snprintf to avoid warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink_apple_audio.c

    r5c3cdc8 rebf96de  
    319319      char_t errorstr[20];
    320320      if (err == kExtAudioFileError_AsyncWriteBufferOverflow) {
    321         sprintf(errorstr,"buffer overflow");
     321        snprintf(errorstr, sizeof (errorstr), "buffer overflow");
    322322      } else if (err == kExtAudioFileError_AsyncWriteTooLarge) {
    323         sprintf(errorstr,"write too large");
     323        snprintf(errorstr, sizeof (errorstr), "write too large");
    324324      } else {
    325325        // unknown error
Note: See TracChangeset for help on using the changeset viewer.