diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-11-15 19:27:57 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-15 10:08:28 -0800 |
commit | e0f4e6103031ccaab3a7821d6ad96c66b85dc9e0 (patch) | |
tree | 59af24eb4378bfe033b267d762818dd2b5cfe034 /subsurface-core/subsurfacestartup.c | |
parent | 3453234a3b940fbc9703dd3bdb9e89561c2cd92c (diff) | |
download | subsurface-e0f4e6103031ccaab3a7821d6ad96c66b85dc9e0.tar.gz |
planner.c: fix 'disclaimer' pointing to stack memory
In add_plan_to_notes() the 'disclaimer' is set to the temporary
buffer 'buf'. By making 'buf' static, 'disclaimer' now points to a
persistent buffer.
Bug was reported as bad characters when printing the planner
deco text.
Reported-by: Stefan Fuchs <sfuchs@gmx.de>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/subsurfacestartup.c')
0 files changed, 0 insertions, 0 deletions