From d52ca9bbdcca869ddfaf831a284f1b45a3ac151fc8ba1fd8c02705cb57a7b828 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Fri, 3 Dec 2010 14:26:54 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/graphics/xfig?expand=0&rev=17 --- xfig.3.2.5b-bnc657393.dif | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 xfig.3.2.5b-bnc657393.dif diff --git a/xfig.3.2.5b-bnc657393.dif b/xfig.3.2.5b-bnc657393.dif new file mode 100644 index 0000000..0bec346 --- /dev/null +++ b/xfig.3.2.5b-bnc657393.dif @@ -0,0 +1,22 @@ +--- w_msgpanel.c ++++ w_msgpanel.c 2010-12-03 14:21:07.931926127 +0000 +@@ -60,7 +60,7 @@ DeclareStaticArgs(12); + /* for the popup message (file_msg) window */ + + static int file_msg_length=0; +-static char tmpstr[300]; ++static char tmpstr[512]; + static Widget file_msg_panel, + file_msg_win, file_msg_dismiss; + +@@ -582,8 +582,8 @@ file_msg(char *format,...) + } + + va_start(ap, format); +- /* format the string */ +- vsprintf(tmpstr, format, ap); ++ /* format the string (but leave room for \n and \0) */ ++ vsnprintf(tmpstr, sizeof(tmpstr)-2, format, ap); + va_end(ap); + + strcat(tmpstr,"\n");