Update decode.c
Merge pull request #2 from prasad83/master

Need to avoid buffer underflow before adding '\0'