diff --git a/src/frontend/inpc_probe.c b/src/frontend/inpc_probe.c index 96e7410c5..d40477ee4 100644 --- a/src/frontend/inpc_probe.c +++ b/src/frontend/inpc_probe.c @@ -246,7 +246,7 @@ void inp_probe(struct card* deck) sadd(&dnewline, newnode); cadd(&dnewline, ' '); /* to make the nodes unique */ - snprintf(nodebuf, 10, "%d", i); + snprintf(nodebuf, 12, "%d", i); nodename = get_terminal_name(instname, nodebuf, instances); char* vline = tprintf("vcurr_%s:%s:%s_%s %s %s 0", instname, nodename, thisnode, nodebuf, newnode, thisnode); card = insert_new_line(card, vline, 0, 0); @@ -376,7 +376,7 @@ void inp_probe(struct card* deck) tmpstr2 = tmpstr; instname1 = gettok_char(&tmpstr, ':', FALSE, FALSE); if (!instname1) { - fprintf(stderr, "Warning: Cannot read instance name in %s, ignored\n"); + fprintf(stderr, "Warning: Cannot read instance name in %s, ignored\n", tmpstr); continue; } tmpcard1 = nghash_find(instances, instname1);