commit ebe3fa641b06cbc0602f87439d8918d997260a17
Author: Quentin Rameau <[email protected]>
AuthorDate: Mon Sep 12 12:25:07 2016 +0200
Commit: Quentin Rameau <[email protected]>
CommitDate: Mon Sep 12 12:25:07 2016 +0200
[driver] fix a printf bad conversion
diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index b7f055c..1361e16 100644
--- 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)