mirror of
https://github.com/apache/nuttx.git
synced 2026-08-14 00:43:13 +00:00
Replace sprintf() with snprintf() in pipe.c
Jira: PDFW15IS-265 Coverity-ID: 10696 Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
c9e817dc4d
commit
a862b653bd
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ int pipe2(int fd[2], size_t bufsize)
|
|||
|
||||
/* Create a pathname to the pipe device */
|
||||
|
||||
sprintf(devname, "/dev/pipe%d", pipeno);
|
||||
snprintf(devname, sizeof(devname), "/dev/pipe%d", pipeno);
|
||||
|
||||
/* Check if the pipe device has already been created */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue