diff options
Diffstat (limited to 'cad/xcircuit/patches/patch-ad')
-rw-r--r-- | cad/xcircuit/patches/patch-ad | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cad/xcircuit/patches/patch-ad b/cad/xcircuit/patches/patch-ad new file mode 100644 index 00000000000..628d560d09b --- /dev/null +++ b/cad/xcircuit/patches/patch-ad @@ -0,0 +1,18 @@ +$NetBSD: patch-ad,v 1.1 2003/07/10 08:03:58 jtb Exp $ + +--- netlist.c.orig ++++ netlist.c +@@ -2045,11 +2045,11 @@ + break; + case 'x': + sout = (char *)realloc(sout, strlen(sout) + 7); +- strcat(sout, "%d", clist->callinst->position.x); ++ strncat(sout, "%d", clist->callinst->position.x); + break; + case 'y': + sout = (char *)realloc(sout, strlen(sout) + 7); +- strcat(sout, "%d", clist->callinst->position.y); ++ strncat(sout, "%d", clist->callinst->position.y); + break; + case 'p': + /* Pin name either has no spaces or is in quotes */ |