tex: fix snprintf missing format parameter - neatvi - [fork] simple vi-type edi… | |
git clone git://src.adamsgaard.dk/neatvi | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 646929726b8bd1971559744ad1cea6c564312e53 | |
parent 7dc3f15c183b10d3611be8a0e6fe5f0f7ae22df3 | |
Author: qianqiangliu <[email protected]> | |
Date: Fri, 21 Dec 2018 08:45:55 +0800 | |
ex: fix snprintf missing format parameter | |
Diffstat: | |
M ex.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/ex.c b/ex.c | |
t@@ -764,7 +764,7 @@ static int ec_ft(char *ec) | |
char arg[EXLEN]; | |
ex_arg(ec, arg); | |
if (arg[0]) | |
- snprintf(bufs[0].ft, sizeof(bufs[0].ft), arg); | |
+ snprintf(bufs[0].ft, sizeof(bufs[0].ft), "%s", arg); | |
else | |
ex_print(ex_filetype()); | |
return 0; |