ref: 0422723f969a5689173108d03396b85641335e32
parent: 4d2132768f0765c5b54999a2b6bc36725d0b7f91
author: Quentin Rameau <quinq@fifth.space>
date: Mon Jul 4 12:15:45 EDT 2016
[driver] fix variables order in outfname() printf()
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -159,7 +159,7 @@
newsz = pathln + 1 + strlen(type) + 1;
new = xmalloc(newsz);
- n = snprintf(new, newsz, "%.*s%c%s", path, pathln, sep, type);
+ n = snprintf(new, newsz, "%.*s%c%s", pathln, path, sep, type);
if (n < 0 || n >= newsz)
die("scc: wrong output filename");
if ((tmpfd = mkstemp(new)) < 0 && errno != EINVAL)