summaryrefslogtreecommitdiff
path: root/p11-kit/uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'p11-kit/uri.c')
-rw-r--r--p11-kit/uri.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/p11-kit/uri.c b/p11-kit/uri.c
index 75d2e84..2659fab 100644
--- a/p11-kit/uri.c
+++ b/p11-kit/uri.c
@@ -765,8 +765,10 @@ format_name_equals (p11_buffer *buffer,
enum uri_sep *sep,
const char *name)
{
- if (*sep)
- p11_buffer_add (buffer, sep, 1);
+ if (*sep) {
+ char c = *sep;
+ p11_buffer_add (buffer, &c, 1);
+ }
p11_buffer_add (buffer, name, -1);
p11_buffer_add (buffer, "=", 1);