summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2018-11-02 17:42:46 +0200
committerTimo Teräs <timo.teras@iki.fi>2018-11-02 17:42:46 +0200
commitc3fe426da0e459a4bbe75b56c989fa37ac783ae5 (patch)
tree23b6955be176b61738529fcf9b93c6c634fa8af0
parentb06e3b991dbe2cb5f9ca65ed50a443a5ecaaf383 (diff)
downloadapk-tools-c3fe426da0e459a4bbe75b56c989fa37ac783ae5.tar.gz
apk-tools-c3fe426da0e459a4bbe75b56c989fa37ac783ae5.tar.bz2
apk-tools-c3fe426da0e459a4bbe75b56c989fa37ac783ae5.tar.xz
apk-tools-c3fe426da0e459a4bbe75b56c989fa37ac783ae5.zip
fix short option string to be nil terminated
-rw-r--r--src/apk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index f4e510f..ef1dcd8 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -562,6 +562,7 @@ int main(int argc, char **argv)
*(sopt++) = ':';
}
}
+ *(sopt++) = 0;
init_openssl();
setup_automatic_flags();