[svn-commits] tzafrir: linux/trunk r5180 - /linux/trunk/drivers/dahdi/dahdi-base.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Oct 30 14:16:09 CDT 2008
Author: tzafrir
Date: Thu Oct 30 14:16:08 2008
New Revision: 5180
URL: http://svn.digium.com/view/dahdi?view=rev&rev=5180
Log:
Use correct length for the, well, dahdi transcoder device name.
Modified:
linux/trunk/drivers/dahdi/dahdi-base.c
Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=5180&r1=5179&r2=5180
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Thu Oct 30 14:16:08 2008
@@ -7826,7 +7826,7 @@
int dahdi_register_chardev(struct dahdi_chardev *dev)
{
- char udevname[strlen(dev->name) + 3];
+ char udevname[strlen(dev->name) + sizeof("dahdi!")];
strcpy(udevname, "dahdi!");
strcat(udevname, dev->name);
More information about the svn-commits
mailing list