summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_services.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/sysdb_services.c')
-rw-r--r--src/db/sysdb_services.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb_services.c b/src/db/sysdb_services.c
index d443fcd80..9a5e57a02 100644
--- a/src/db/sysdb_services.c
+++ b/src/db/sysdb_services.c
@@ -574,7 +574,7 @@ sysdb_svc_update(struct sysdb_ctx *sysdb,
}
for (i = 0; aliases[i]; i++) {
- lret = ldb_msg_add_fmt(msg, SYSDB_NAME_ALIAS, "%s", aliases[i]);
+ lret = ldb_msg_add_string(msg, SYSDB_NAME_ALIAS, aliases[i]);
if (lret != LDB_SUCCESS) {
ret = EINVAL;
goto done;
@@ -590,7 +590,7 @@ sysdb_svc_update(struct sysdb_ctx *sysdb,
}
for (i = 0; protocols[i]; i++) {
- lret = ldb_msg_add_fmt(msg, SYSDB_SVC_PROTO, "%s", protocols[i]);
+ lret = ldb_msg_add_string(msg, SYSDB_SVC_PROTO, protocols[i]);
if (lret != LDB_SUCCESS) {
ret = EINVAL;
goto done;