shithub: scc

Download patch

ref: 847edd52f60fa2a1d239659f2814255bd7ea0f26
parent: f61cd4cd6503c74de632467f70fb7cb40f56bb7d
author: Quentin Rameau <quinq@fifth.space>
date: Mon Sep 12 08:25:07 EDT 2016

[driver] fix a printf bad conversion

--- 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", 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)