title: c array - warning: format not a string literal
body: <p>I'm attempting to learn C and already I've run into an issue. I assume its trivial but I need to know it. I have written:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main() 
  {
      char str_a[20];
  
      strcpy(str_a, "Hello, world!\n");
      printf(str_a);
  }
  </code></pre>
  
  <p>Once I attempt to compile it with: gcc -g -o char_array2 char_array2.c I receive an error saying:</p>
  
  <pre><code>char_array2.c: In function ‘main’:
  char_array2.c:9:2: warning: format not a string literal and no format arguments [-Wformat-security]
  </code></pre>
  
  <p>Can anyone help please?</p>