summaryrefslogtreecommitdiff
path: root/networking/telnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/telnet.c')
-rw-r--r--networking/telnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/telnet.c b/networking/telnet.c
index 6c5f3d1..6ad7712 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -132,7 +132,7 @@ static char *ttype;
#endif
#ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN
-static char *autologin;
+static const char *autologin;
#endif
#ifdef CONFIG_FEATURE_AUTOWIDTH
@@ -663,7 +663,7 @@ extern int telnet_main(int argc, char** argv)
while ((opt = getopt(argc, argv, "al:")) != EOF) {
switch (opt) {
case 'l':
- autologin = bb_xstrdup(optarg);
+ autologin = optarg;
break;
case 'a':
autologin = getenv("USER");