projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88c1d7c
)
Trim any trailing end-of-line from system-call error strings.
author
Chris Hanson
<org/chris-hanson/cph>
Sun, 24 Aug 1997 04:03:53 +0000
(
04:03
+0000)
committer
Chris Hanson
<org/chris-hanson/cph>
Sun, 24 Aug 1997 04:03:53 +0000
(
04:03
+0000)
v7/src/microcode/nttop.c
patch
|
blob
|
history
diff --git
a/v7/src/microcode/nttop.c
b/v7/src/microcode/nttop.c
index 56c7aaf51f6da2278ded19cc69b30ff912f556c0..81004c9b06211c18c1a8da00c90c091a20258cdf 100644
(file)
--- a/
v7/src/microcode/nttop.c
+++ b/
v7/src/microcode/nttop.c
@@
-1,6
+1,6
@@
/* -*-C-*-
-$Id: nttop.c,v 1.2
1 1997/06/26 07:05:11
cph Exp $
+$Id: nttop.c,v 1.2
2 1997/08/24 04:03:53
cph Exp $
Copyright (c) 1993-97 Massachusetts Institute of Technology
@@
-302,6
+302,10
@@
w32_error_message (DWORD rc)
if (c == '\0')
break;
}
+ if (((to - 3) >= result)
+ && ((to[-3]) == '\r')
+ && ((to[-2]) == '\n'))
+ (to[-3]) = '\0';
}
(void) LocalFree (buffer);
return (result);