summaryrefslogtreecommitdiff
path: root/apps/metadata/metadata_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata/metadata_common.c')
-rw-r--r--apps/metadata/metadata_common.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/metadata/metadata_common.c b/apps/metadata/metadata_common.c
index 781123717a..e861644025 100644
--- a/apps/metadata/metadata_common.c
+++ b/apps/metadata/metadata_common.c
@@ -29,7 +29,6 @@
29#include "metadata_common.h" 29#include "metadata_common.h"
30#include "metadata_parsers.h" 30#include "metadata_parsers.h"
31#include "replaygain.h" 31#include "replaygain.h"
32#include "misc.h"
33 32
34/* Read a string from the file. Read up to size bytes, or, if eos != -1, 33/* Read a string from the file. Read up to size bytes, or, if eos != -1,
35 * until the eos character is found (eos is not stored in buf, unless it is 34 * until the eos character is found (eos is not stored in buf, unless it is
@@ -202,7 +201,10 @@ uint32_t get_itunes_int32(char* value, int count)
202 201
203 while (count-- > 0) 202 while (count-- > 0)
204 { 203 {
205 value = skip_whitespace(value); 204 while (isspace(*value))
205 {
206 value++;
207 }
206 208
207 while (*value && !isspace(*value)) 209 while (*value && !isspace(*value))
208 { 210 {
@@ -210,7 +212,10 @@ uint32_t get_itunes_int32(char* value, int count)
210 } 212 }
211 } 213 }
212 214
213 value = skip_whitespace(value); 215 while (isspace(*value))
216 {
217 value++;
218 }
214 219
215 while (*value && ((c = strchr(hexdigits, toupper(*value))) != NULL)) 220 while (*value && ((c = strchr(hexdigits, toupper(*value))) != NULL))
216 { 221 {