preproc.c: Fix NULL deref on token pasting
commitadabc1576b957fc7d929d2c7e749b4f45f7293aa
authorCyrill Gorcunov <gorcunov@gmail.com>
Fri, 9 Jul 2010 22:11:41 +0000 (10 02:11 +0400)
committerCyrill Gorcunov <gorcunov@gmail.com>
Fri, 9 Jul 2010 22:14:24 +0000 (10 02:14 +0400)
tree748d3c4559350440cc2a1e6124def81e8de6e422
parent8ab945a259e40c2e4dc92e91f8fc78bf7c2e2175
preproc.c: Fix NULL deref on token pasting

In case if there is a whitespace before
'paste' token we may reach NULL dereference
in strlen since paste_head will point to
TOK_WHITESPACE. Fix it.

[test: paste.asm]

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
preproc.c