summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/pipestream.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/pipestream.h')
-rw-r--r--Build/source/utils/asymptote/pipestream.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/pipestream.h b/Build/source/utils/asymptote/pipestream.h
index 20cc6d321b2..dbf73989d7f 100644
--- a/Build/source/utils/asymptote/pipestream.h
+++ b/Build/source/utils/asymptote/pipestream.h
@@ -194,7 +194,8 @@ public:
while(b >= prompt) {
if(a < buf) return false;
if(*a != *b) return false;
- if(*a == '\n' && *(a-1) == '\r') --a; // Handle MSDOS incompatibility
+ // Handle MSDOS incompatibility:
+ if(a > buf && *a == '\n' && *(a-1) == '\r') --a;
--a; --b;
}
return true;