$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\"",