Fix potential buffer overflow by using snprintf instead of sprintf
diff --git a/compat/dund.c b/compat/dund.c
index f9847ea..74e19f4 100644
--- a/compat/dund.c
+++ b/compat/dund.c
@@ -192,7 +192,7 @@
 		}
 
 		ba2str(&sa.rc_bdaddr, ba);
-		sprintf(ch, "%d", channel);
+		snprintf(ch, sizeof(ch), "%d", channel);
 
 		/* Setup environment */
 		setenv("DUN_BDADDR",  ba, 1);