You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-chemistry/molden/files/molden-5.0-overflow.patch

17 lines
341 B

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();
}