Skip to content

Commit f3165e5

Browse files
authored
Update plotting.cpp see #1615
1 parent a46d27c commit f3165e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plotting.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@ namespace lib
17761776
int l = strlen(label)+2;
17771777
//displace "label" on the right (for alignment purposes) by adding l whitespaces using test (which is larger enough).
17781778
memset(test, 32, l);
1779-
snprintf(test + l, 2 * length - l, label);
1779+
snprintf(test + l, 2 * length - l, "%s", label);
17801780
snprintf(label, length, "%s", test);
17811781
free(test);
17821782
}

0 commit comments

Comments
 (0)