title: Expects char* but is char(*) [20]
body: <p>I'm trying to write a script to except data from GET request using sscanf. I seem to be having a problem with parsing it with sscanf and passing it on to a variable. I think that the issue is something to do with my char type, but may also have to do with my Regex string because the error gives the group as "%[a-z,A-Z" and not "%[a-z,A-Z]" like I'd expect it to. You can see the full source code at <a href="http://cs.mcgill.ca/~phwang3/cgi-bin/searchRecord.c" rel="nofollow">http://cs.mcgill.ca/~phwang3/cgi-bin/searchRecord.c</a>, but I've highlighted the main stuff here.</p>
  
  <p>I seem to be getting an error</p>
  
  <pre><code> warning: format ‘%[a-z,A-Z’ expects argument of type ‘char *’, but argument 3 has type ‘char * (*)[20]’ [-Wformat]
  </code></pre>
  
  <p>at this line</p>
  
  <pre><code>if(sscanf(data,"firstName=%[a-z,A-Z]&amp;lastName=%[a-z,A-Z]",&amp;firstName, &amp;lastName)!=2) {
  </code></pre>
  
  <p>the variables in question are declared before the above line as</p>
  
  <pre><code>char firstName[20] = {0};
  char lastName[20] = {0};
  </code></pre>
  
  <p>also relevant, I suppose, is that the query is stored in the variable "data", and also declared before the poblematic string.</p>
  
  <pre><code>char* data;
  data = getenv("QUERY_STRING");
  </code></pre>