1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Add LICENSE

- Fix build on 12.x (where dirname(3), basename(3) now take char* instead of const char*)

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2016-10-27 12:59:41 +00:00
parent f1f5a4e769
commit 4bb12e1f34
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=424762
2 changed files with 20 additions and 0 deletions

View File

@ -10,6 +10,9 @@ MASTER_SITES= http://www.kamaz.org.uk/taglookup/
MAINTAINER= alex@kamaz.org.uk
COMMENT= Utility for tagging groups of audio files using CDDB
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libcddb.so:audio/libcddb \
libtag.so:audio/taglib

View File

@ -31,3 +31,20 @@
return true;
else
return false;
@@ -261,8 +262,14 @@ namespace TagLookup
void operator() (const OldNameNewName &onnn)
{
- std::string new_base(basename(onnn.new_name.c_str()));
- std::string new_path(dirname(onnn.old_name.c_str()));
+ std::vector<char> newbuf(onnn.new_name.begin(), onnn.new_name.end());
+ newbuf.push_back('\0');
+
+ std::vector<char> oldbuf(onnn.old_name.begin(), onnn.old_name.end());
+ oldbuf.push_back('\0');
+
+ std::string new_base(basename(newbuf.data()));
+ std::string new_path(dirname(oldbuf.data()));
new_path.append("/");
new_path.append(new_base);