summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-20 00:25:43 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-22 13:29:58 +0100
commitee863b61333bcb50310c56aced81ef0b3cfac304 (patch)
treee80545467cc19de322a70b27d9c6c55dcf90fdb1
parent4b4a317f8e60ffa828a5aff75602b72fe91813db (diff)
Fix bad server log truncation on Windows.
-rw-r--r--src/tools/dcpomatic_server.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_server.cc b/src/tools/dcpomatic_server.cc
index 2b7b5f503..34b716591 100644
--- a/src/tools/dcpomatic_server.cc
+++ b/src/tools/dcpomatic_server.cc
@@ -199,7 +199,11 @@ private:
void removed (int n)
{
- _text->Remove (0, n + 1);
+#ifdef DCPOMATIC_WINDOWS
+ _text->Remove(0, n + 2);
+#else
+ _text->Remove(0, n + 1);
+#endif
}
void update_state ()