]> git.tdb.fi Git - ext/subsurface.git/commit
Fix string handling in get_combo_box_entry_text
authorDirk Hohndel <dirk@hohndel.org>
Fri, 17 Aug 2012 16:36:04 +0000 (09:36 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Fri, 17 Aug 2012 16:36:04 +0000 (09:36 -0700)
commitaab94d07ccb890caaa03cf220b442ea5ce228fc1
tree4cc09fcaa7154b2991e092a0b4d5fab8446b09ce
parent70f903c457a3b82cdaa62e232124cdbba5c11bc5
Fix string handling in get_combo_box_entry_text

Linus' code dropped the const qualifier from the start rating. While
fixing this I stared some more at get_combo_box_entry_text and realized
that the existing code could potentially change the "old" pointer and then
pass it to free(). Tsk-tsk-tsk.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
info.c