joshaber / MacShairport

A native Mac Shairport implementation
Other
176 stars 25 forks source link

Error on MSShairportServer - Format string is not a string literal #13

Open loretoparisi opened 11 years ago

loretoparisi commented 11 years ago

for(NSString *piece in allPieces) { unsigned short value = (unsigned short) [piece decimalValueFromHex]; value = (unsigned short) CFSwapInt16HostToBig(value); [challengeString appendFormat:[[NSString alloc] initWithData:[NSData dataWithBytes:&value length:sizeof(value)] encoding:NSISOLatin1StringEncoding]]; }

/Users/loreto/Projects/SDK/MacShairport/Classes/MSShairportServer.m:469:43: Format string is not a string literal (potentially insecure)

MacOS X 10.8/64bit