From: Christophe CURIS <christophe.cu...@free.fr> Signed-off-by: Christophe CURIS <christophe.cu...@free.fr> --- util/wxcopy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/util/wxcopy.c b/util/wxcopy.c index 90303fb..d7e01b6 100644 --- a/util/wxcopy.c +++ b/util/wxcopy.c @@ -121,7 +121,10 @@ int main(int argc, char **argv) file = fopen(filename, "rb"); if (!file) { char line[1024]; - sprintf(line, "%s: could not open \"%s\"", __progname, filename); + + snprintf(line, sizeof(line), + "%s: could not open \"%s\"", + __progname, filename); perror(line); exit(1); } -- 1.9.2 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.