libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit 70a231e56805118ddfd91444a59790f94a2deefc
parent b5b6c450a276aed94b4bfc31e1c7c6f159dcecff
Author: Toni Ruottu <toni.ruottu@helsinki.fi>
Date:   Sat,  6 Jan 2007 12:19:02 +0000

Minor safety modification.

Diffstat:
Msrc/plugins/nsfextractor.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/plugins/nsfextractor.c b/src/plugins/nsfextractor.c @@ -144,14 +144,14 @@ struct EXTRACTOR_Keywords * libextractor_nsf_extract /* name, artist, copyright fields */ - album[ 32 ] = '\0'; - artist[ 32 ] = '\0'; - copyright[ 32 ] = '\0'; - memcpy( &album, head->title, 32 ); memcpy( &artist, head->artist, 32 ); memcpy( &copyright, head->copyright, 32 ); + album[ 32 ] = '\0'; + artist[ 32 ] = '\0'; + copyright[ 32 ] = '\0'; + prev = addkword( prev, album, EXTRACTOR_ALBUM ); prev = addkword( prev, artist, EXTRACTOR_ARTIST ); prev = addkword( prev, copyright, EXTRACTOR_COPYRIGHT );