new package: id3ted (#8178)

This commit is contained in:
xtkoba 2021-12-11 05:23:05 +09:00 committed by GitHub
parent e7f40a39ae
commit 11e5a0c703
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

10
packages/id3ted/build.sh Normal file
View File

@ -0,0 +1,10 @@
TERMUX_PKG_HOMEPAGE=https://muennich.github.com/id3ted/
TERMUX_PKG_DESCRIPTION="A comand line id3 tag editor"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.0
TERMUX_PKG_SRCURL=https://github.com/muennich/id3ted/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=b661514637278b00930cc13ef22f46530baadcf9f3f4ee4b7cb210b0d46b18f1
TERMUX_PKG_DEPENDS="file, libc++, taglib"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_MAKE_ARGS="PREFIX=$TERMUX_PREFIX"

View File

@ -0,0 +1,15 @@
https://github.com/muennich/id3ted/commit/a044c5659bf29df8152feabba63a83dc6feb7a99
diff --git a/fileio.cpp b/fileio.cpp
index 35d992f..edfe2de 100644
--- a/fileio.cpp
+++ b/fileio.cpp
@@ -154,7 +154,7 @@ FileIO::Status FileIO::resetTimes(const char *filename, const FileTimes &times)
}
FileIO::Status FileIO::createDir(const char *path) {
- char *directory = new char[strlen(path + 1)];
+ char *directory = new char[strlen(path) + 1];
char *curr = directory;
struct stat stats;
Status ret = Success;