| 1 | Origin: $NetBSD: patch-src_libdisplay_DisplayOutput.cpp,v 1.1 2019/11/16 17:36:28 ng0 Exp $
|
| 2 |
|
| 3 | Modified by: R Veera Kumar <[email protected]> 2020-03-28; change to patch -p1
|
| 4 |
|
| 5 | diff -uNr xplanet-1.3.1/src/libdisplay/DisplayOutput.cpp xplanet-1.3.1.new/src/libdisplay/DisplayOutput.cpp
|
| 6 | |
| 7 | |
| 8 | @@ -51,7 +51,7 @@
|
| 9 | string outputFilename = options->OutputBase();
|
| 10 | int startIndex = options->OutputStartIndex();
|
| 11 | int stopIndex = options->NumTimes() + startIndex - 1;
|
| 12 | - if (stopIndex > 1)
|
| 13 | + if (stopIndex > 0)
|
| 14 | {
|
| 15 | const int digits = (int) (log10((double) stopIndex) + 1);
|
| 16 | char buffer[64];
|