Browse Source

change created_from to an allocated string buffer

pull/60/head
Richard Fuchs 11 years ago
parent
commit
43bcbcc4db
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      daemon/call.h
  2. +1
    -1
      daemon/call_interfaces.c

+ 1
- 1
daemon/call.h View File

@ -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 {


+ 1
- 1
daemon/call_interfaces.c View File

@ -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