[zaptel-commits] tzafrir: branch 1.4 r4573 - /branches/1.4/kernel/zaptel-base.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Thu Oct 30 15:14:26 CDT 2008


Author: tzafrir
Date: Thu Oct 30 15:14:26 2008
New Revision: 4573

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4573
Log:
Use correct length for the Zaptel transcoder device name.

Modified:
    branches/1.4/kernel/zaptel-base.c

Modified: branches/1.4/kernel/zaptel-base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/zaptel-base.c?view=diff&rev=4573&r1=4572&r2=4573
==============================================================================
--- branches/1.4/kernel/zaptel-base.c (original)
+++ branches/1.4/kernel/zaptel-base.c Thu Oct 30 15:14:26 2008
@@ -7712,7 +7712,7 @@
 #endif /* CONFIG_DEVFS_FS */
 
 #ifdef CONFIG_ZAP_UDEV
-	char udevname[strlen(dev->name) + 3];
+	char udevname[strlen(dev->name) + sizeof("zap")];
 
 	strcpy(udevname, "zap");
 	strcat(udevname, dev->name);




More information about the zaptel-commits mailing list