summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry/molden/files/molden-5.0-overflow.patch')
-rw-r--r--sci-chemistry/molden/files/molden-5.0-overflow.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/sci-chemistry/molden/files/molden-5.0-overflow.patch b/sci-chemistry/molden/files/molden-5.0-overflow.patch
new file mode 100644
index 000000000000..4fc406266935
--- /dev/null
+++ b/sci-chemistry/molden/files/molden-5.0-overflow.patch
@@ -0,0 +1,16 @@
+ xwin.c | 10 ++++++----
+ 1 files changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/xwin.c b/xwin.c
+index f395909..092edff 100644
+--- a/xwin.c
++++ b/xwin.c
+@@ -27353,7 +27355,7 @@ char *errstr;
+ UpdateZME();
+ RedrawScroll(&zscroll);
+ }
+- strcpy(ZMEerr,errstr);
++ strncpy(ZMEerr,errstr,MAXZMEERR);
+ RedrawStatus();
+ }
+