diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2005-02-25 17:55:51 +0000 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2005-02-25 17:55:51 +0000 |
commit | 8cb37d3a542866f0227bf500045eb721250a011d (patch) | |
tree | 178d301884dda14bb2053859fb9990a5c730734c /apps/codecs/libwavpack | |
parent | 089c5f795751a78f77773bc8b94b71d32532b6e3 (diff) |
no strcpy for codecs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6061 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwavpack')
-rw-r--r-- | apps/codecs/libwavpack/unpack.c | 4 | ||||
-rw-r--r-- | apps/codecs/libwavpack/wputils.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/codecs/libwavpack/unpack.c b/apps/codecs/libwavpack/unpack.c index 917f487b20..b9e53203b5 100644 --- a/apps/codecs/libwavpack/unpack.c +++ b/apps/codecs/libwavpack/unpack.c @@ -62,7 +62,7 @@ int unpack_init (WavpackContext *wpc) while (read_metadata_buff (wpc, &wpmd)) { if (!process_metadata (wpc, &wpmd)) { - strcpy (wpc->error_message, "invalid metadata!"); + /*strcpy (wpc->error_message, "invalid metadata!");*/ return FALSE; } @@ -71,7 +71,7 @@ int unpack_init (WavpackContext *wpc) } if (wps->wphdr.block_samples && !bs_is_open (&wps->wvbits)) { - strcpy (wpc->error_message, "invalid WavPack file!"); + /*strcpy (wpc->error_message, "invalid WavPack file!");*/ return FALSE; } diff --git a/apps/codecs/libwavpack/wputils.c b/apps/codecs/libwavpack/wputils.c index 21c399f517..9fff5db3bc 100644 --- a/apps/codecs/libwavpack/wputils.c +++ b/apps/codecs/libwavpack/wputils.c @@ -63,12 +63,12 @@ WavpackContext *WavpackOpenFileInput (read_stream infile, char *error) bcount = read_next_header (wpc.infile, &wps->wphdr); if (bcount == (ulong) -1) { - strcpy (error, "not compatible with this version of WavPack file!"); + /*strcpy (error, "not compatible with this version of WavPack file!");*/ return NULL; } if ((wps->wphdr.flags & UNKNOWN_FLAGS) || wps->wphdr.version < 0x402 || wps->wphdr.version > 0x40f) { - strcpy (error, "not compatible with this version of WavPack file!"); + /*strcpy (error, "not compatible with this version of WavPack file!");*/ return NULL; } @@ -76,8 +76,8 @@ WavpackContext *WavpackOpenFileInput (read_stream infile, char *error) wpc.total_samples = wps->wphdr.total_samples; if (!unpack_init (&wpc)) { - strcpy (error, wpc.error_message [0] ? wpc.error_message : - "not compatible with this version of WavPack file!"); + /*strcpy (error, wpc.error_message [0] ? wpc.error_message : + "not compatible with this version of WavPack file!");*/ return NULL; } |