diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-24 01:18:23 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-24 01:18:23 +0200 |
commit | 602bff55e0da64b3fb7d6b3b4d580a430c17298f (patch) | |
tree | 3dfdfd1fbbe3d1b03a0dea78f17920dabf16748a /src/mds-colour.c | |
parent | info index (diff) | |
download | mds-602bff55e0da64b3fb7d6b3b4d580a430c17298f.tar.gz mds-602bff55e0da64b3fb7d6b3b4d580a430c17298f.tar.bz2 mds-602bff55e0da64b3fb7d6b3b4d580a430c17298f.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-colour.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mds-colour.c b/src/mds-colour.c index 469cf43..57fa1ee 100644 --- a/src/mds-colour.c +++ b/src/mds-colour.c @@ -602,8 +602,7 @@ static inline size_t colour_list_subunmarshal(colour_list_entry_t* entry, char* data += sizeof(colour_t) / sizeof(char); while (data[n++]); n *= sizeof(char); - entry->key = malloc(n); - if (entry->key == NULL) + if (xbmalloc(entry->key, n)) return 0; memcpy(entry->key, data, n); return sizeof(colour_t) + n; |