summaryrefslogtreecommitdiff
path: root/tonezone.c
diff options
context:
space:
mode:
Diffstat (limited to 'tonezone.c')
-rw-r--r--tonezone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tonezone.c b/tonezone.c
index d470449..e2792f1 100644
--- a/tonezone.c
+++ b/tonezone.c
@@ -323,7 +323,7 @@ int tone_zone_register_zone(int fd, struct tone_zone *z)
space -= sizeof(*h);
h->zone = z->zone;
- strncpy(h->name, z->description, sizeof(h->name) - 1);
+ zap_copy_string(h->name, z->description, sizeof(h->name));
for (x = 0; x < ZT_MAX_CADENCE; x++)
h->ringcadence[x] = z->ringcadence[x];