[asterisk-commits] mmichelson: branch 1.4 r167299 - /branches/1.4/main/db.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 6 15:35:58 CST 2009


Author: mmichelson
Date: Tue Jan  6 15:35:57 2009
New Revision: 167299

URL: http://svn.digium.com/view/asterisk?view=rev&rev=167299
Log:
Use the correct variable when creating the format string

(closes issue #14177)
Reported by: nic_bellamy
Patches:
      asterisk-trunk-svn-r167242-ast_db_gettree.patch uploaded by nic (license 299)


Modified:
    branches/1.4/main/db.c

Modified: branches/1.4/main/db.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/db.c?view=diff&rev=167299&r1=167298&r2=167299
==============================================================================
--- branches/1.4/main/db.c (original)
+++ branches/1.4/main/db.c Tue Jan  6 15:35:57 2009
@@ -407,7 +407,7 @@
 	if (!ast_strlen_zero(family)) {
 		if (!ast_strlen_zero(keytree)) {
 			/* Family and key tree */
-			snprintf(prefix, sizeof(prefix), "/%s/%s", family, prefix);
+			snprintf(prefix, sizeof(prefix), "/%s/%s", family, keytree);
 		} else {
 			/* Family only */
 			snprintf(prefix, sizeof(prefix), "/%s", family);




More information about the asterisk-commits mailing list