Mercurial > pidgin
comparison console/libgnt/gntbutton.c @ 15586:d059cfbb62ae
Patch from Richard 'wabz' Nelson. This fixes some possible crashes/exploits.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 08 Feb 2007 22:10:30 +0000 |
parents | bfcdd361357e |
children | 1c8f1dc50685 |
comparison
equal
deleted
inserted
replaced
15584:9cbf44d3c0f9 | 15586:d059cfbb62ae |
---|---|
20 type = GNT_COLOR_HIGHLIGHT; | 20 type = GNT_COLOR_HIGHLIGHT; |
21 else | 21 else |
22 type = GNT_COLOR_NORMAL; | 22 type = GNT_COLOR_NORMAL; |
23 | 23 |
24 wbkgdset(widget->window, '\0' | COLOR_PAIR(type)); | 24 wbkgdset(widget->window, '\0' | COLOR_PAIR(type)); |
25 mvwprintw(widget->window, 1, 2, button->priv->text); | 25 mvwaddstr(widget->window, 1, 2, button->priv->text); |
26 | 26 |
27 GNTDEBUG; | 27 GNTDEBUG; |
28 } | 28 } |
29 | 29 |
30 static void | 30 static void |