This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new b63c56cef audio:Resolve compilation errors in 
nxplayer/nxrecorder/nxlooper on ARM64 architecture
b63c56cef is described below

commit b63c56cefac761acb93cf644a4c74b06b37f1f43
Author: shipei <[email protected]>
AuthorDate: Wed Aug 9 18:01:50 2023 +0800

    audio:Resolve compilation errors in nxplayer/nxrecorder/nxlooper on ARM64 
architecture
    
    resolve compilation errors: '%0lx' directive output may be truncated
    writing between 1 and 16 bytes into a region of size 11 
[-Werror=format-truncation=]
    
    Signed-off-by: shipei <[email protected]>
---
 include/system/nxlooper.h   | 2 +-
 include/system/nxplayer.h   | 2 +-
 include/system/nxrecorder.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/system/nxlooper.h b/include/system/nxlooper.h
index 40811c39f..2335c3d5e 100644
--- a/include/system/nxlooper.h
+++ b/include/system/nxlooper.h
@@ -51,7 +51,7 @@ struct nxlooper_s
   char            playdev[CONFIG_NAME_MAX];    /* Preferred loopback device */
   int             crefs;                       /* Number of references */
   pthread_mutex_t mutex;                       /* Thread sync mutex */
-  char            mqname[16];                  /* Name of play message queue */
+  char            mqname[32];                  /* Name of play message queue */
   mqd_t           mq;                          /* Message queue for the
                                                 * loopthread */
   pthread_t       loop_id;                     /* Thread ID of the loopthread 
*/
diff --git a/include/system/nxplayer.h b/include/system/nxplayer.h
index 700d0e931..74f4856f4 100644
--- a/include/system/nxplayer.h
+++ b/include/system/nxplayer.h
@@ -53,7 +53,7 @@ struct nxplayer_s
   int             state;                       /* Current player state */
   int             dev_fd;                      /* File descriptor of active 
device */
   mqd_t           mq;                          /* Message queue for the 
playthread */
-  char            mqname[16];                  /* Name of our message queue */
+  char            mqname[32];                  /* Name of our message queue */
   pthread_t       play_id;                     /* Thread ID of the playthread 
*/
   int             crefs;                       /* Number of references to the 
player */
   pthread_mutex_t mutex;                       /* Thread sync mutex */
diff --git a/include/system/nxrecorder.h b/include/system/nxrecorder.h
index a06d86df4..4a2d127a3 100644
--- a/include/system/nxrecorder.h
+++ b/include/system/nxrecorder.h
@@ -45,7 +45,7 @@ struct nxrecorder_s
   int             state;                   /* Current recorder state */
   int             dev_fd;                  /* File descriptor of active device 
*/
   mqd_t           mq;                      /* Message queue for the 
recordthread */
-  char            mqname[16];              /* Name of our message queue */
+  char            mqname[32];              /* Name of our message queue */
   pthread_t       record_id;               /* Thread ID of the recordthread */
   int             crefs;                   /* Number of references to the 
recorder */
   pthread_mutex_t mutex;                   /* Thread sync mutex */

Reply via email to