diff --git a/man-db-2.6.3-zio.dif b/man-db-2.6.3-zio.dif index f2e9058..2bf818c 100644 --- a/man-db-2.6.3-zio.dif +++ b/man-db-2.6.3-zio.dif @@ -125,21 +125,21 @@ +#ifdef HAVE_ZIO + ext = strrchr (filename, '.'); + if (ext) { -+ char opt[2] = {'\0', '\0'}; ++ const char *opt; + char *name; + + if (STREQ (ext, ".gz")) -+ *opt = 'g'; ++ opt = "g"; + else if (STREQ (ext, ".z")) -+ *opt = 'z'; ++ opt = "z"; + else if (STREQ (ext, ".bz2")) -+ *opt = 'b'; ++ opt = "b"; + else if (STREQ (ext, ".xz")) -+ *opt = 'x'; ++ opt = "x"; + else if (STREQ (ext, ".lzma")) -+ *opt = 'l'; ++ opt = "l"; + else if (STREQ (ext, ".Z")) -+ *opt = 'Z'; ++ opt = "Z"; + else + goto nozio; +