pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:9739:    const char *params[3] = { NULL, NULL, NULL };    const struct instr *instr = &instrs[op - F_OFFSET];    sprintf(buf[0], "%d", arg1);    sprintf(buf[1], "%d", arg2);    if (instr->flags & I_HASARG) {    params[0] = buf[0];    }    if (instr->flags & I_HASARG2) {    params[1] = buf[1];    } -  sprintf(buf[3], "# %s", instr->name); -  string_builder_append_disassembly(s, addr, addr, buf[3], params, NULL); +  sprintf(buf[2], "# %s", instr->name); +  string_builder_append_disassembly(s, addr, addr, buf[2], params, NULL);   }      PMOD_EXPORT void add_reverse_symbol(struct pike_string *sym, void *addr)   {    struct svalue key;    struct svalue val;    SET_SVAL(key, PIKE_T_INT, NUMBER_NUMBER, integer, (ptrdiff_t)addr);    SET_SVAL(val, PIKE_T_STRING, 0, string, sym);    low_mapping_insert(reverse_symbol_table, &key, &val, 1);   }