summaryrefslogtreecommitdiff
path: root/tokens.h
diff options
context:
space:
mode:
authorBenno Schulenberg <bensberg@justemail.net>2013-08-28 20:03:30 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2013-08-29 09:38:24 +1000
commit24d18e0a844041ef82441adb16aa18cc4b4814ae (patch)
tree431227b043a41d0e660e39cf24ec755aab6c3dfc /tokens.h
parent0ebdf47fd4bc434ac3d2339544c022a869510738 (diff)
Making sure that a copied string is always null-terminated (#66345).
A more minimalistic and formally correct solution. This amends and extends the previous fix for bug #66345, fixing not just yyGetKeyName() but also yyGetString(). Signed-off-by: Benno Schulenberg <bensberg@justemail.net> Fixes a typo from cdcd552 (should be sizeof - 1, not sizeof -i). Code flows that i is at most sizeof(scanBuf) - 1, so last is not needed. Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tokens.h')
0 files changed, 0 insertions, 0 deletions