summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apk.c b/src/apk.c
index 4062e56..2a8c959 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -126,7 +126,8 @@ int main(int argc, char **argv)
}
for (opt = &generic_options[0], sopt = short_options;
opt->name != NULL; opt++) {
- if (opt->flag == NULL && isalnum(opt->val)) {
+ if (opt->flag == NULL &&
+ opt->val <= 0xff && isalnum(opt->val)) {
*(sopt++) = opt->val;
if (opt->has_arg != no_argument)
*(sopt++) = ':';