Ver código fonte

local network: fix login to ftp server

Pierre SAGASPE 10 anos atrás
pai
commit
1013f6e878
1 arquivos alterados com 2 adições e 2 exclusões
  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;
     }
 }