List Archive

Thread

Thread Index

Message

From: Thomas Klausner <tk%giga.or.at@localhost>
To: Remi Collet <remi%fedoraproject.org@localhost>
Subject: Re: libzip-1.1 released
Date: Thu, 28 Jan 2016 14:04:54 +0100

On Thu, Jan 28, 2016 at 01:42:41PM +0100, Remi Collet wrote:
> Build is broken
> 
> ziptool.c: In function 'main':
> ziptool.c:1013:61: error: 'optopt' undeclared (first use in this functio
> n)
>       snprintf(reason, sizeof(reason), "invalid option -%c", optopt);

Thanks for the bug report.

> Trivial fix:
> 
> - -   snprintf(reason, sizeof(reason), "invalid option -%c", optopt);
> +   snprintf(reason, sizeof(reason), "invalid option -%c", c);

That will always print "-?"...
 Thomas

Made by MHonArc.