diff options
Diffstat (limited to 'apps/metadata/metadata_common.c')
-rw-r--r-- | apps/metadata/metadata_common.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/metadata/metadata_common.c b/apps/metadata/metadata_common.c index 38761e3dae..5947098f12 100644 --- a/apps/metadata/metadata_common.c +++ b/apps/metadata/metadata_common.c | |||
@@ -320,10 +320,9 @@ long parse_tag(const char* name, char* value, struct mp3entry* id3, | |||
320 | 320 | ||
321 | if (len > 0) | 321 | if (len > 0) |
322 | { | 322 | { |
323 | strncpy(buf, value, len); | ||
324 | buf[len] = 0; | ||
325 | *p = buf; | ||
326 | len++; | 323 | len++; |
324 | strlcpy(buf, value, len); | ||
325 | *p = buf; | ||
327 | } | 326 | } |
328 | else | 327 | else |
329 | { | 328 | { |