diff options
Diffstat (limited to 'usr')
| -rw-r--r-- | usr/src/cmd/cdrw/device.c | 4 | ||||
| -rw-r--r-- | usr/src/cmd/cdrw/write_audio.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/cmd/cdrw/device.c b/usr/src/cmd/cdrw/device.c index 2442486c72..a7edbe5bac 100644 --- a/usr/src/cmd/cdrw/device.c +++ b/usr/src/cmd/cdrw/device.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -684,7 +684,7 @@ write_next_track(int mode, bstreamhandle h) struct trackio_error *te; off_t size; - ti = (struct track_info *)my_zalloc(TRACK_INFO_SIZE); + ti = (struct track_info *)my_zalloc(sizeof (*ti)); if ((build_track_info(target, -1, ti) == 0) || ((ti->ti_flags & TI_NWA_VALID) == 0)) { if ((device_type == DVD_PLUS) || (device_type == diff --git a/usr/src/cmd/cdrw/write_audio.c b/usr/src/cmd/cdrw/write_audio.c index 4d806965b1..cf476ddb7b 100644 --- a/usr/src/cmd/cdrw/write_audio.c +++ b/usr/src/cmd/cdrw/write_audio.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -104,7 +104,7 @@ write_audio(char **argv, int start_argc, int argc) /* Put the device in track-at-once mode */ write_init(TRACK_MODE_AUDIO); - ti = (struct track_info *)my_zalloc(TRACK_INFO_SIZE); + ti = (struct track_info *)my_zalloc(sizeof (*ti)); /* Build information for next invisible track, -1 */ if ((build_track_info(target, -1, ti) == 0) || |
