(svn r1848) Remove the obscure feature of initialising the edit box with the contents of str_buffr - it was unused anyway.
Remove it from the chat box too, which inherited it via copy&paste.
--- a/misc_gui.c Tue Feb 08 15:42:28 2005 +0000
+++ b/misc_gui.c Tue Feb 08 16:37:28 2005 +0000
@@ -994,11 +994,7 @@
DeleteWindowById(WC_QUERY_STRING, 0);
DeleteWindowById(WC_SAVELOAD, 0);
- if (str == 0xFFFF) {
- memcpy(_orig_edit_str_buf, str_buffr, MAX_QUERYSTR_LEN);
- } else {
- GetString(_orig_edit_str_buf, str);
- }
+ GetString(_orig_edit_str_buf, str);
if (maxlen & 0x1000) {
_do_edit_on_text_even_when_no_change_to_edit_box = true;
--- a/network_gui.c Tue Feb 08 15:42:28 2005 +0000
+++ b/network_gui.c Tue Feb 08 16:37:28 2005 +0000
@@ -1455,11 +1455,7 @@
DeleteWindowById(WC_SEND_NETWORK_MSG, 0);
- if (str == 0xFFFF) {
- memcpy(_orig_edit_str_buf, str_buffr, MAX_QUERYSTR_LEN);
- } else {
- GetString(_orig_edit_str_buf, str);
- }
+ GetString(_orig_edit_str_buf, str);
_orig_edit_str_buf[maxlen] = 0;