comparison gtk3/dw.c @ 876:13442724eb5d

One last change... use 30 bytes instead of 20... don't want to overflow.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 06 Apr 2011 05:42:00 +0000
parents e1afa43261d9
children d3693ceec9b1
comparison
equal deleted inserted replaced
875:e1afa43261d9 876:13442724eb5d
10416 * id: Timer ID returned by dw_timer_connect(). 10416 * id: Timer ID returned by dw_timer_connect().
10417 */ 10417 */
10418 void API dw_timer_disconnect(int id) 10418 void API dw_timer_disconnect(int id)
10419 { 10419 {
10420 int _locked_by_me = FALSE; 10420 int _locked_by_me = FALSE;
10421 char tmpbuf[20]; 10421 char tmpbuf[30];
10422 10422
10423 snprintf(tmpbuf, 20, "_dw_timer%d", id); 10423 snprintf(tmpbuf, 30, "_dw_timer%d", id);
10424 DW_MUTEX_LOCK; 10424 DW_MUTEX_LOCK;
10425 g_object_set_data(G_OBJECT(_DWObject), tmpbuf, NULL); 10425 g_object_set_data(G_OBJECT(_DWObject), tmpbuf, NULL);
10426 snprintf(tmpbuf, 20, "_dw_timerdata%d", id); 10426 snprintf(tmpbuf, 30, "_dw_timerdata%d", id);
10427 g_object_set_data(G_OBJECT(_DWObject), tmpbuf, NULL); 10427 g_object_set_data(G_OBJECT(_DWObject), tmpbuf, NULL);
10428 DW_MUTEX_UNLOCK; 10428 DW_MUTEX_UNLOCK;
10429 } 10429 }
10430 10430
10431 /* Get the actual signal window handle not the user window handle 10431 /* Get the actual signal window handle not the user window handle