Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8574539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:29:48+00:00 2026-06-11T19:29:48+00:00

I am faced the below error : format string is not a string literal

  • 0

I am faced the below error :
format string is not a string literal (potentially insecure) [-Wformat-security]

and my code is :

appDelegate.reportString = [NSString stringWithFormat:queryString];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:29:50+00:00Added an answer on June 11, 2026 at 7:29 pm

    Since you don’t seem to want to format the string (ie no parameters to use with the format string) but just copy it, the better call to use is [NSString stringWithString:]

    appDelegate.reportString = [NSString stringWithString:queryString];
    

    If queryString is an immutable string and not an NSMutableString, you don’t need to copy it but can just use;

    appDelegate.reportString = queryString;
    

    with the same result.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hi i faced below error in spring security application,i cant upload details company restricting
I faced a mistake in the code below: if (folderBrowserDialog1->ShowDialog() == DialogResult::OK ) {
I faced conflict problem during yacc compilation. Error message below: 24: shift/reduce conflict (shift
I faced SSLHandshakeException on Heroku. This app was not SSL app. But this app
I faced one issue while working on a C code with Microsoft Visual Studio-2005
I've the code below that works great in my ready function in jquery, when
I am getting below error in IE8 Do you want to view the webpage
Based on this code below I use for regular mysql, how could I convert
My question has to do with facetting. In my example code below, I look
Below is some example code of how I run my mysql queries, I run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.