title: Vulnerability using printf/scanf and %s
body: <p>Why does C tell me this is unsafe even when I try to give the correct input?</p>
  
  <pre><code>#include &lt;stdio.h&gt; 
  #include &lt;stdlib.h&gt;
  
  int main(void) {
      char id[8];
  
      printf("Your ID:");
      scanf("%s", id);
  
      printf("%s", id);
  
      return 0; 
  }
  </code></pre>
  
  <p>I'm assuming because it could be exploited? How so?</p>