rem: sprintf(tmp, "%i", value);
add: snprintf(tmp, sizeof(tmp), "%i", value);
context: putidef(char *line, char *name, int value){    char tmp[64];    sprintf(tmp, "%i", value);    strcat(line, name);    strcat(line, tmp);}