[wesnoth-commits] [wesnoth/wesnoth] 16c822: text_box_base: Fix segfault when type characters m...

GitHub noreply at github.com
Sat Mar 17 10:14:20 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 16c822cbb4485b22eecf483699686ab325357521
      https://github.com/wesnoth/wesnoth/commit/16c822cbb4485b22eecf483699686ab325357521
  Author: RatArmy <broadbarredfirefish at gmail.com>
  Date:   2018-03-17 (Sat, 17 Mar 2018)

  Changed paths:
    M src/font/text.cpp
    M src/font/text.hpp
    M src/gui/widgets/text_box_base.cpp

  Log Message:
  -----------
  text_box_base: Fix segfault when type characters more than limit by IME (#2666)

pango_text.set_text() is not check whether the text over the maximum
length, so change it to insert_text()




More information about the Commits mailing list