diff options
Diffstat (limited to 'net/irrtoolset-nox11/patches/patch-dc')
-rw-r--r-- | net/irrtoolset-nox11/patches/patch-dc | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/net/irrtoolset-nox11/patches/patch-dc b/net/irrtoolset-nox11/patches/patch-dc new file mode 100644 index 00000000000..024c8832ed0 --- /dev/null +++ b/net/irrtoolset-nox11/patches/patch-dc @@ -0,0 +1,50 @@ +$NetBSD: patch-dc,v 1.1 2007/09/07 21:26:33 spz Exp $ + +--- src/roe/schedule.cc.orig 2002-04-09 13:48:48.000000000 +0200 ++++ src/roe/schedule.cc +@@ -177,7 +177,8 @@ void Schedule::add_selected(char *select + for (char *s = strtok(selection, " \t"); s; s = strtok(NULL, " \t")) { + r = routelist(atoi(s)); + +- tcl_Eval("set AS AS%d", routelist.as); ++ asnum_string(buffer, routelist.as); ++ tcl_Eval("set AS %s", buffer); + tcl_Eval("set ROUTE %s", r->route.get_text(buffer)); + tcl_Eval("set DATE %s", configure.date); + tcl_Eval("subst \"%s\"", configure.add_template); +@@ -190,6 +191,7 @@ void Schedule::del_selected(char *select + RouteList::Route *r; + RouteList::Route::db_as *p; + Route *route = NULL; ++ char buffer[64]; + + for (char *s = strtok(selection, " \t"); s; s = strtok(NULL, " \t")) { + r = routelist(atoi(s)); +@@ -213,7 +215,8 @@ void Schedule::del_selected(char *select + // Modified by wlee@isi.edu + // if (code) + if (route) { +- tcl_Eval("set AS AS%d", routelist.as); ++ asnum_string(buffer, routelist.as); ++ tcl_Eval("set AS %s", buffer); + tcl_Eval("set ROUTE %s", r->route.get_text()); + tcl_Eval("set DATE %s", configure.date); + tcl_Eval("subst \"%.*s%s\"", +@@ -231,6 +234,7 @@ void Schedule::del_selected_matching_sou + RouteList::Route *r; + RouteList::Route::db_as *p; + Route *route = NULL; ++ char buffer[64]; + + for (char *s = strtok(selection, " \t"); s; s = strtok(NULL, " \t")) { + r = routelist(atoi(s)); +@@ -254,7 +258,8 @@ void Schedule::del_selected_matching_sou + + // Modified by wlee@isi.edu + if (route) { +- tcl_Eval("set AS AS%d", routelist.as); ++ asnum_string(buffer, routelist.as); ++ tcl_Eval("set AS %s", buffer); + tcl_Eval("set ROUTE %s", r->route.get_text()); + tcl_Eval("set DATE %s", configure.date); + tcl_Eval("subst \"%.*s%s\"", |