diff options
Diffstat (limited to 'fxotune.c')
-rw-r--r-- | fxotune.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -167,7 +167,8 @@ static int ensure_silence(struct silence_info *info) memset(&dop, 0, sizeof(dop)); dop.op = ZT_DIAL_OP_REPLACE; dop.dialstr[0] = 'T'; - strncpy(dop.dialstr + 1, info->dialstr, sizeof(dop.dialstr) - 1); + zap_copy_string(dop.dialstr + 1, info->dialstr, sizeof(dop.dialstr)); + if (ioctl(info->device, ZT_DIAL, &dop)) { fprintf(stderr, "Unable to dial!\n"); |