summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-06 19:45:24 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-06 19:45:24 -0400
commit3c9117545f9f63551e972f979833e582228bb17b (patch)
tree778b8d5fe96d4d77be720cc77fbc15d9673a3a03 /src
parent2f26f83008b403a9cf682a558ebd58776358a221 (diff)
parent817ec8cc819787240efda834483d8a7a512d2933 (diff)
Merge pull request #2976 from martinpitt/udev-test-tags
Add tags tests to udev-test.pl
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd/sd-device/sd-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c
index e9f8970d2c..e787cb69d3 100644
--- a/src/libsystemd/sd-device/sd-device.c
+++ b/src/libsystemd/sd-device/sd-device.c
@@ -1492,7 +1492,7 @@ static int device_properties_prepare(sd_device *device) {
for (tag = sd_device_get_tag_first(device); tag; tag = sd_device_get_tag_next(device)) {
char *e;
- if (!GREEDY_REALLOC(tags, tags_allocated, tags_len + strlen(tag) + 1))
+ if (!GREEDY_REALLOC(tags, tags_allocated, tags_len + strlen(tag) + 2))
return -ENOMEM;
e = stpcpy(stpcpy(tags + tags_len, tag), ":");
tags_len = e - tags;