wget: don't be careless with xstrdup'ing
[oweals/busybox.git] / networking / ftpgetput.c
index 25b7f142754197ca371184a46b7adcdc929e2e96..4928541530bfa3ca981feedb8f03fcc7c2f98e0a 100644 (file)
@@ -288,10 +288,10 @@ int ftpgetput_main(int argc, char **argv)
        int (*ftp_action)(ftp_host_info_t *, FILE *, const char *, char *) = NULL;
 
        /* Check to see if the command is ftpget or ftput */
-       if (ENABLE_FTPPUT && (!ENABLE_FTPGET || bb_applet_name[3] == 'p')) {
+       if (ENABLE_FTPPUT && (!ENABLE_FTPGET || applet_name[3] == 'p')) {
                ftp_action = ftp_send;
        }
-       if (ENABLE_FTPGET && (!ENABLE_FTPPUT || bb_applet_name[3] == 'g')) {
+       if (ENABLE_FTPGET && (!ENABLE_FTPPUT || applet_name[3] == 'g')) {
                ftp_action = ftp_receive;
        }