Skip to content

Instantly share code, notes, and snippets.

View abbas-obscurus's full-sized avatar

Vitalii Obishchenko abbas-obscurus

View GitHub Profile
@abbas-obscurus
abbas-obscurus / pytc.c.patch
Created December 2, 2011 09:23
pytc rangefwm function now accept pefixes with embedded null bytes
--- pytc.c.orig 2011-12-01 02:31:54.000000000 +0400
+++ pytc.c 2011-12-01 02:32:21.000000000 +0400
@@ -1555,14 +1555,15 @@
int max;
TCLIST *list;
char *prefix;
+ int prefix_len;
static char *kwlist[] = {"prefix", "max", NULL};
- if (!PyArg_ParseTupleAndKeywords(args, keywds, "si:rangefwm", kwlist,