format string is not a string literal (potentially insecure)

What is wrong with my coding when the compiler says "Format string is not a string literal (potentially insecure)"?


void PrintPathInfo()

{

for(NSString* oneString in arr)

{

NSLog([oneString stringByAppendingString:@"/n"] );

}

}

iMac, Mac OS X (10.6.7)

Posted on Jul 12, 2011 10:30 AM

Reply
4 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

format string is not a string literal (potentially insecure)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.