mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-26 20:24:20 +03:00
Fixes from "David H.Martin" <dmartina@usa.net>
This commit is contained in:
parent
3282214b18
commit
1469e74810
@ -1,3 +1,10 @@
|
||||
2000-02-04 "David H.Martin" <dmartina@usa.net>
|
||||
|
||||
* src/widget.c (input_new): Change NULL to empty strings and avoid
|
||||
crashing when string functions are called.
|
||||
* src/boxes.c (configure_vfs): Remove local change to empty string.
|
||||
* src/setup.c (load setup): Load anonymous password
|
||||
|
||||
2000-02-03 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* setup.c (load_setup): call ftpfs_init_passwd to avoid segfault
|
||||
|
@ -694,7 +694,7 @@ configure_vfs (void)
|
||||
g_snprintf(buffer3, sizeof (buffer3), "%i", ftpfs_directory_timeout);
|
||||
confvfs_widgets[5].text = buffer3;
|
||||
confvfs_widgets[7].text = ftpfs_anonymous_passwd;
|
||||
confvfs_widgets[2].text = ftpfs_proxy_host ? ftpfs_proxy_host : "";
|
||||
confvfs_widgets[2].text = ftpfs_proxy_host;
|
||||
#endif
|
||||
|
||||
if (quick_dialog (&confvfs_dlg) != B_CANCEL) {
|
||||
|
@ -609,6 +609,7 @@ load_setup (void)
|
||||
}
|
||||
#ifdef USE_NETCODE
|
||||
ftpfs_proxy_host = do_load_string ("Misc", "ftp_proxy_host", "gate");
|
||||
ftpfs_anonymous_passwd = do_load_string ("Misc", "ftpfs_password", "user@mc");
|
||||
#endif
|
||||
boot_current_is_left =
|
||||
GetPrivateProfileInt ("Dirs", "current_is_left", 1, profile);
|
||||
|
@ -1748,6 +1748,10 @@ input_new (int y, int x, int color, int len, const char *def_text, char *tkname)
|
||||
in->history = history_get (tkname);
|
||||
}
|
||||
}
|
||||
|
||||
if (!def_text)
|
||||
def_text="";
|
||||
|
||||
if (def_text == INPUT_LAST_TEXT) {
|
||||
def_text = "";
|
||||
if (in->history)
|
||||
|
Loading…
x
Reference in New Issue
Block a user