Quellcode durchsuchen

local network: fix login to ftp server

Pierre SAGASPE vor 10 Jahren
Ursprung
Commit
1013f6e878
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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;
     }
 }