change created_from to an allocated string buffer

pull/60/head
Richard Fuchs 11 years ago
parent a871cd7507
commit 43bcbcc4db

@ -338,7 +338,7 @@ struct call {
time_t deleted;
time_t ml_deleted;
unsigned char tos;
char created_from[64];
char *created_from;
};
struct local_interface {

@ -156,7 +156,7 @@ static str *call_update_lookup_udp(char **out, struct callmaster *m, enum call_o
}
if (addr) {
memcpy(c->created_from, addr, strlen(addr));
c->created_from = call_strdup(c, addr);
}
monologue = call_get_mono_dialogue(c, &fromtag, &totag);

Loading…
Cancel
Save