[hackers] [scc] [driver] fix a printf bad conversion || Quentin Rameau

From: <git_AT_suckless.org>
Date: Mon, 12 Sep 2016 12:26:01 +0200 (CEST)

commit ebe3fa641b06cbc0602f87439d8918d997260a17
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Mon Sep 12 12:25:07 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
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
_AT_@ -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)
Received on Mon Sep 12 2016 - 12:26:01 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 12 2016 - 12:36:15 CEST