Code

patches/: Added Wformat-security.dpatch.
[pkg-pfstools.git] / debian / patches / Wformat-security.dpatch
1 Description: Fix certain issues identified by -Wformat-security.
2 Author: Sebastian Harl <tokkee@debian.org>
4 --- a/src/pfs/pfs.cpp
5 +++ b/src/pfs/pfs.cpp
6 @@ -525,8 +525,7 @@ static void writeTags( const TagContaine
7    TagList::const_iterator it;
8    fprintf( out, "%d" PFSEOL, tags->getSize() );
9    for( it = tags->tagsBegin(); it != tags->tagsEnd(); it++ ) {
10 -    fprintf( out, (const char*)(it->c_str()) );
11 -    fprintf( out, PFSEOL );
12 +    fprintf( out, "%s" PFSEOL, (const char*)(it->c_str()) );
13    }
14  }
15