summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-02 12:46:57 +0100
committerErich Eckner <git@eckner.net>2018-11-02 12:46:57 +0100
commit846295cb7cdf0828a712b9e052c88c99fa220b50 (patch)
tree33dbd2b4812a15767917464a0c682969916faa13
parent33792df4c9cfbf7c6336b88da88ead3a7a78af7e (diff)
downloadanzeige-846295cb7cdf0828a712b9e052c88c99fa220b50.tar.xz
input_gadgets.c: open zip r/o
-rw-r--r--input_gadgets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input_gadgets.c b/input_gadgets.c
index 2e79681..bd704e3 100644
--- a/input_gadgets.c
+++ b/input_gadgets.c
@@ -407,7 +407,7 @@ char *gadgets_retrieve_weather_warnings(char *output, int max_len)
free(chunk.memory);
return NULL;
}
- if ((za = zip_open_from_source(src, 0, &error)) == NULL) {
+ if ((za = zip_open_from_source(src, ZIP_RDONLY, &error)) == NULL) {
fprintf(stderr, "can't open zip from source: %s\n", zip_error_strerror(&error));
zip_source_free(src);
zip_error_fini(&error);