X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/f2cd38f53e8a04284b9f6db3dbf704a96063d67d..086d6be5a155d0390ec1915350ad126c95a88416:/NetworkController.m diff --git a/NetworkController.m b/NetworkController.m index f2989e3..ce19757 100755 --- a/NetworkController.m +++ b/NetworkController.m @@ -98,7 +98,7 @@ static NetworkController *sharedController; name:name port:SERVER_PORT]; fullPass = [[NSUserDefaults standardUserDefaults] dataForKey:@"sharedPlayerPassword"]; - if (fullPass) { + if ([fullPass length]) { [fullPass getBytes:&buffer range:NSMakeRange(6, 4)]; [serverPass release]; serverPass = [[NSData alloc] initWithBytes:&buffer length:strlen(&buffer)];