Procházet zdrojové kódy

local network: fix login to ftp server

Pierre SAGASPE před 10 roky
rodič
revize
1013f6e878
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Sources/VLCServerListViewController.m

+ 2 - 2
Sources/VLCServerListViewController.m

@@ -509,7 +509,7 @@ confirmedWithUsername:(NSString *)username
         case VLCServerProtocolFTP:
         {
             VLCFTPServerListViewController *targetViewController = [[VLCFTPServerListViewController alloc]
-                                                                    initWithFTPServer:[NSString stringWithFormat:@"ftp://%@", server]
+                                                                    initWithFTPServer:server
                                                                     userName:username
                                                                     andPassword:password atPath:@"/"];
             [self.navigationController pushViewController:targetViewController animated:YES];
@@ -542,7 +542,7 @@ confirmedWithUsername:(NSString *)username
         }
 
         default:
-            APLog(@"Unsupported URL Scheme requested %lu", protocol);
+            APLog(@"Unsupported URL Scheme requested %ld", (long)protocol);
             break;
     }
 }