From a862b653bd6657a60dbc3ae280fa2a2d04891b5d Mon Sep 17 00:00:00 2001 From: Nobutaka Toyoshima Date: Tue, 9 Sep 2014 09:38:32 +0900 Subject: [PATCH] Replace sprintf() with snprintf() in pipe.c Jira: PDFW15IS-265 Coverity-ID: 10696 Signed-off-by: Masayuki Ishikawa --- drivers/pipes/pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pipes/pipe.c b/drivers/pipes/pipe.c index eb898bfec73..8ffa3a2d7cb 100644 --- a/drivers/pipes/pipe.c +++ b/drivers/pipes/pipe.c @@ -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 */