소스 검색

local network: fix login to ftp server

Pierre SAGASPE 10 년 전
부모
커밋
1013f6e878
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;
     }
 }