cufflinks/0006-format-security.patch

14 lines
507 B
Diff
Raw Permalink Normal View History

2021-03-30 16:17:39 +08:00
diff --git a/src/locfit/makecmd.c b/src/locfit/makecmd.c
index 12ced82..c712843 100644
--- a/src/locfit/makecmd.c
+++ b/src/locfit/makecmd.c
@@ -200,7 +200,7 @@ char *cmdline;
/* vs is used to store the command line string. */
sprintf(vn,"=clstr%d",clcount);
vs = createvar(vn,STSYSTEM,1+strlen(cmdline),VCHAR);
- sprintf((char *)vdptr(vs),cmdline);
+ sprintf((char *)vdptr(vs),"%s",cmdline);
/* va is used to store pointers to the command line fields. */
sprintf(vn,"=cline%d",clcount);