List of "Always wrong" snippets in C : <p>Was talking to a colleague today on one-spot errors - I.e. errors (or at least patterns that should ring an alarm bell) in code that a decent programmer should be able to spot at a single glance like</p>

<pre><code>x = malloc (strlen(y));

while (!feof (f)) {
   ...
}

char *f(){
   char x[100];
   ...
   return x;
}
</code></pre>

<p>Who has similar snippets of such patterns? I would suggest anyone who has been on SO for a while will have his personal favourites of those</p>
