Fixed bug due to buffer overrun and compilation error

From: https://github.com/CyanogenMod/lge-kernel-star/commit/645b08c68cd2204ff56426c8da2a328c6feb16f9

I was stopped by this bug when building AOKP 4.2.2 with gcc 4.6. Making this changed allowed compilation to continue.