[asterisk-dev] seanbright: tools/trunk r5656 - /tools/trunk/dahdi_monitor.c

Russell Bryant russell at digium.com
Tue Jan 13 22:15:23 CST 2009


On Jan 13, 2009, at 5:46 PM, SVN commits to the Digium repositories  
wrote:
>
> -	dahdi_copy_string(bar+(barlen/2), "(TX)", 4);
> +	strncpy(bar + (barlen / 2), "(TX)", 4);


Alternatively, when copying a constant string into a buffer that you  
_know_ is big enough, you can just use strcpy().

--
Russell Bryant
Digium, Inc. | Senior Software Engineer, Open Source Team Lead
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org







More information about the asterisk-dev mailing list