blob: 3a0b5ee82168632bea9d31237f02fbeb3396ddeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Index: tcsh/sh.dol.c
===================================================================
--- tcsh.orig/sh.dol.c
+++ tcsh/sh.dol.c
@@ -485,9 +485,10 @@ Dgetdol(void)
(void) sigrelse(SIGINT);
#endif /* BSDSIGS */
np = wbuf;
- while (force_read(OLDSTD, cbuf + cbp++, 1) == 1) {
+ while (force_read(OLDSTD, cbuf + cbp, 1) == 1) {
int len;
+ cbp++;
len = normal_mbtowc(np, cbuf, cbp);
if (len == -1) {
reset_mbtowc();
|