fixed an obscure bug that doesn't show up in English
authorEdward Wang <edward@ucbvax.Berkeley.EDU>
Wed, 16 May 1990 13:29:03 +0000 (05:29 -0800)
committerEdward Wang <edward@ucbvax.Berkeley.EDU>
Wed, 16 May 1990 13:29:03 +0000 (05:29 -0800)
SCCS-vsn: usr.bin/spell/spell.c 4.3

usr/src/usr.bin/spell/spell.c

index e01bcf3..3011b41 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)spell.c    4.2 %G%";
+static char sccsid[] = "@(#)spell.c    4.3 %G%";
 #endif
 
 #include "spell.h"
 #endif
 
 #include "spell.h"
@@ -249,8 +249,12 @@ char *ep,*d,*a;
 y_to_e(ep,d,a,lev)
 char *ep,*d,*a;
 {
 y_to_e(ep,d,a,lev)
 char *ep,*d,*a;
 {
+       char c = *ep;
        *ep++ = 'e';
        *ep++ = 'e';
-       return(strip(ep,"",d,lev));
+       if (strip(ep,"",d,lev))
+               return (1);
+       ep[-1] = c;
+       return (0);
 }
 
 ily(ep,d,a,lev)
 }
 
 ily(ep,d,a,lev)