More security in gcc.c

As strange as it looks, i have found more errors that could lead to
security issues in gcc.c.
Merge pull request #18 from hardening/gcc_fixes

More security in gcc.c