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/wputils.c | |
parent | 089c5f795751a78f77773bc8b94b71d32532b6e3 (diff) | |
download | rockbox-8cb37d3a542866f0227bf500045eb721250a011d.tar.gz rockbox-8cb37d3a542866f0227bf500045eb721250a011d.zip |
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/wputils.c')
-rw-r--r-- | apps/codecs/libwavpack/wputils.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) | |||
63 | bcount = read_next_header (wpc.infile, &wps->wphdr); | 63 | bcount = read_next_header (wpc.infile, &wps->wphdr); |
64 | 64 | ||
65 | if (bcount == (ulong) -1) { | 65 | if (bcount == (ulong) -1) { |
66 | strcpy (error, "not compatible with this version of WavPack file!"); | 66 | /*strcpy (error, "not compatible with this version of WavPack file!");*/ |
67 | return NULL; | 67 | return NULL; |
68 | } | 68 | } |
69 | 69 | ||
70 | if ((wps->wphdr.flags & UNKNOWN_FLAGS) || wps->wphdr.version < 0x402 || wps->wphdr.version > 0x40f) { | 70 | if ((wps->wphdr.flags & UNKNOWN_FLAGS) || wps->wphdr.version < 0x402 || wps->wphdr.version > 0x40f) { |
71 | strcpy (error, "not compatible with this version of WavPack file!"); | 71 | /*strcpy (error, "not compatible with this version of WavPack file!");*/ |
72 | return NULL; | 72 | return NULL; |
73 | } | 73 | } |
74 | 74 | ||
@@ -76,8 +76,8 @@ WavpackContext *WavpackOpenFileInput (read_stream infile, char *error) | |||
76 | wpc.total_samples = wps->wphdr.total_samples; | 76 | wpc.total_samples = wps->wphdr.total_samples; |
77 | 77 | ||
78 | if (!unpack_init (&wpc)) { | 78 | if (!unpack_init (&wpc)) { |
79 | strcpy (error, wpc.error_message [0] ? wpc.error_message : | 79 | /*strcpy (error, wpc.error_message [0] ? wpc.error_message : |
80 | "not compatible with this version of WavPack file!"); | 80 | "not compatible with this version of WavPack file!");*/ |
81 | 81 | ||
82 | return NULL; | 82 | return NULL; |
83 | } | 83 | } |