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:
Nobutaka Toyoshima 2014-09-09 09:38:32 +09:00 committed by Masayuki Ishikawa
parent c9e817dc4d
commit a862b653bd

View File

@ -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 */