Fixed vulnerability where stack smashing could occur.