diff options
author | file <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-11-28 22:53:54 +0000 |
---|---|---|
committer | file <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-11-28 22:53:54 +0000 |
commit | 57089bd399ea60f43341b452006835a823190c02 (patch) | |
tree | 1f59019d2e1ff900275c11637cd756318184e5ce /ztdynamic.c | |
parent | a78725a6eca07236d060311624242ec87b9d05f7 (diff) |
Merged revisions 3258 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.2
........
r3258 | file | 2007-11-28 18:52:54 -0400 (Wed, 28 Nov 2007) | 6 lines
Pass the correct variable to sizeof when copying the driver name.
(closes issue #11352)
Reported by: brettcar
Patches:
ztdynamic.c.patch uploaded by eliel (license 64)
........
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3259 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'ztdynamic.c')
-rw-r--r-- | ztdynamic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ztdynamic.c b/ztdynamic.c index 8d95b0a..2ae1b95 100644 --- a/ztdynamic.c +++ b/ztdynamic.c @@ -611,7 +611,7 @@ static int create_dynamic(ZT_DYNAMIC_SPAN *zds) memset(z->msgbuf, 0, bufsize); /* Setup parameters properly assuming we're going to be okay. */ - strncpy(z->dname, zds->driver, sizeof(z->driver) - 1); + strncpy(z->dname, zds->driver, sizeof(z->dname) - 1); strncpy(z->addr, zds->addr, sizeof(z->addr) - 1); z->timing = zds->timing; sprintf(z->span.name, "ZTD/%s/%s", zds->driver, zds->addr); |