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
@ -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…
Reference in New Issue
Block a user