detox: update to 1.4.1.
This commit is contained in:
parent
63e969dff6
commit
0fe67ad506
@ -1,23 +0,0 @@
|
||||
--- src/parse_options.c.dt
|
||||
+++ src/parse_options.c
|
||||
@@ -178,15 +178,17 @@ struct detox_options *parse_options_geto
|
||||
main_options->files = malloc(sizeof(char *) * 10);
|
||||
|
||||
i = 0;
|
||||
- max = 0;
|
||||
+ max = 10;
|
||||
|
||||
if (optind < argc) {
|
||||
while (optind < argc) {
|
||||
- main_options->files[i++] = strdup(argv[optind]);
|
||||
- if (i > max) {
|
||||
+ /* not enough space for the next file and
|
||||
+ possible ending NULL -> realloc */
|
||||
+ if (i + 2 > max) {
|
||||
main_options->files = realloc(main_options->files, sizeof(char *) * (10 + max));
|
||||
max += 10;
|
||||
}
|
||||
+ main_options->files[i++] = strdup(argv[optind]);
|
||||
|
||||
optind++;
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Template file for 'detox'
|
||||
pkgname=detox
|
||||
version=1.3.3
|
||||
version=1.4.1
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
configure_args="--sysconfdir=/etc/detox"
|
||||
@ -11,7 +11,7 @@ maintainer="Martin Födinger <foedinger.martin@autistici.org>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="https://github.com/dharple/detox"
|
||||
distfiles="https://github.com/dharple/detox/archive/v${version}.tar.gz"
|
||||
checksum=d57b6b8909046e66e2d992c126aba59c350d8aebfae55937397ef0b88abb4ae0
|
||||
checksum=fd71aa31abc82b1ec8b7ce996cd70062939e9c165b106f395beced3706c5ea17
|
||||
|
||||
pre_configure() {
|
||||
autoreconf --install
|
||||
|
Loading…
x
Reference in New Issue
Block a user