scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit ebe3fa641b06cbc0602f87439d8918d997260a17
parent 0f24ebc4fb707624fc51ec3c5f73e4dd19ba365e
Author: Quentin Rameau <quinq@fifth.space>
Date:   Mon, 12 Sep 2016 12:25:07 +0200

[driver] fix a printf bad conversion

Diffstat:
Mdriver/posix/scc.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/driver/posix/scc.c b/driver/posix/scc.c @@ -159,7 +159,7 @@ outfname(char *path, char *type) newsz = pathln + 1 + strlen(type) + 1; new = xmalloc(newsz); - n = snprintf(new, newsz, "%.*s%c%s", pathln, path, sep, type); + n = snprintf(new, newsz, "%.*s%c%s", (int)pathln, path, sep, type); if (n < 0 || n >= newsz) die("scc: wrong output filename"); if ((tmpfd = mkstemp(new)) < 0 && errno != EINVAL)