From c5dd9adb104b44a4ebb9006fb3205b7c74c3beb5 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Sun, 14 Sep 2008 11:33:11 -0700 Subject: fix bug that both implementations of record_from_string() shared --- src/storage.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/storage.c') diff --git a/src/storage.c b/src/storage.c index 83aabb00..fc0f15d4 100644 --- a/src/storage.c +++ b/src/storage.c @@ -777,6 +777,7 @@ static sdp_record_t *record_from_string(const gchar *str) size = strlen(str)/2; pdata = g_malloc0(size); + tmp[2] = 0; for (i = 0; i < size; i++) { memcpy(tmp, str + (i * 2), 2); pdata[i] = (uint8_t) strtol(tmp, NULL, 16); -- cgit