From 2267e00a21d5005b2b5482ea8ca97d1604712ffa Mon Sep 17 00:00:00 2001 From: Peter Schiffer Date: Tue, 5 May 2015 15:55:47 +0200 Subject: [PATCH] Use strncpy instead of strcpy in ioconf.c --- ioconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ioconf.c b/ioconf.c index 8f7fb25..bc9094e 100644 --- a/ioconf.c +++ b/ioconf.c @@ -316,7 +316,7 @@ int ioc_init(void) break; case '%': - strcpy(blkp->dfmt, dfmt + 1); + strncpy(blkp->dfmt, dfmt + 1, IOC_FMTLEN); case 'd': blkp->cconv = ioc_ito10; strcat(blkp->dfmt, "%s"); -- 2.40.0