[PATCH] osmo-hlr[master]: Fix printf security warning

Max gerrit-no-reply at lists.osmocom.org
Mon Feb 20 10:28:45 UTC 2017


Review at  https://gerrit.osmocom.org/1851

Fix printf security warning

Change-Id: I5e53de54ad1b9da18e1f414932cfd21be71ab154
---
M src/db.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/51/1851/1

diff --git a/src/db.c b/src/db.c
index 1385502..e57d86f 100644
--- a/src/db.c
+++ b/src/db.c
@@ -46,7 +46,7 @@
 		LOGP(DDB, LOGL_DEBUG, "Opened database\n");
 		break;
 	case 1:
-		LOGP(DDB, LOGL_DEBUG, stmt);
+		LOGP(DDB, LOGL_DEBUG, "%s\n", stmt);
 		break;
 	case 2:
 		LOGP(DDB, LOGL_DEBUG, "Closed database\n");

-- 
To view, visit https://gerrit.osmocom.org/1851
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5e53de54ad1b9da18e1f414932cfd21be71ab154
Gerrit-PatchSet: 1
Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>


More information about the gerrit-log mailing list