diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-09-24 23:43:32 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-09-24 23:43:32 +0000 |
commit | 09200aea99bdd29fb0f75b67162fbd958ef5df99 (patch) | |
tree | e357758b2a4443a66d1b2e7780d7f106651d815b | |
parent | 176c7e84d9db737cb58a381449799b13ef7b3fb4 (diff) |
serial - allow up to 3 digits channel number
-rw-r--r-- | serial/storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/storage.c b/serial/storage.c index 8b66354f..110d8de7 100644 --- a/serial/storage.c +++ b/serial/storage.c @@ -75,7 +75,7 @@ int port_store(bdaddr_t *src, bdaddr_t *dst, int16_t id, create_name(filename, PATH_MAX, STORAGEDIR, src_addr, "serial"); create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); - size = strlen(svcname) + 3; + size = strlen(svcname) + 5; value = g_malloc0(size); snprintf(key, 32, "%s#%hd", dst_addr, id); |