diff options
Diffstat (limited to 'tonezone.c')
-rw-r--r-- | tonezone.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -274,7 +274,7 @@ int tone_zone_register_zone(int fd, struct tone_zone *z) } h->count = count; h->zone = z->zone; - strncpy(h->name, z->description, sizeof(h->name)); + zap_copy_string(h->name, z->description, sizeof(h->name)); x = z->zone; ioctl(fd, ZT_FREEZONE, &x); res = ioctl(fd, ZT_LOADZONE, h); |