View | Details | Raw Unified | Return to bug 20842
Collapse All | Expand All

(-)a/pygtk/gtk/gdkevent.override (-2 / +3 lines)
Lines 354-361 _wrap_gdk_event_tp_setattr(PyObject *self, char *attr, PyObject *value) Link Here
354
	    char *tmp;
354
	    char *tmp;
355
	    STRING_CHECK();
355
	    STRING_CHECK();
356
	    tmp = PyString_AsString(value);
356
	    tmp = PyString_AsString(value);
357
	    strncpy((char *) &event->client.data, tmp,
357
	    strncpy((char *) &event->client.data, tmp, 19);
358
                    sizeof(event->client.data));
358
			if (strnlen(tmp) > 20)
359
				event->client.data[20] = '\0';
359
	    return 0;
360
	    return 0;
360
	}
361
	}
361
	break;
362
	break;

Return to bug 20842