pvput: handle negative numbers

This commit is contained in:
Matej Sekoranja
2013-06-11 19:25:14 +02:00
parent ffa5d2abe1
commit db75d08ed9

View File

@@ -779,6 +779,7 @@ int main (int argc, char *argv[])
bool quiet = false;
setvbuf(stdout,NULL,_IOLBF,BUFSIZ); /* Set stdout to line buffering */
putenv(const_cast<char*>("POSIXLY_CORRECT=")); /* Behave correct on GNU getopt systems; e.g. handle negative numbers */
while ((opt = getopt(argc, argv, ":hr:w:tqdF:")) != -1) {
switch (opt) {