home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: fj.sources.d
- Path: sparky!uunet!ccut!news.u-tokyo.ac.jp!wnoc-tyo-news!cs.titech!is.titech!ss.titech!ssasaki
- From: ssasaki@ee.titech.ac.jp (Shigehiko Sasaki)
- Subject: Ng 1.3L Bug fix 2
- Message-ID: <SSASAKI.93Jan28212037@fnews.ee.titech.ac.jp>
- Sender: news@ss.titech.ac.jp
- Nntp-Posting-Host: fnews.ee.titech.ac.jp
- Organization: Dept. of Electrical and Electoronics., Tokyo Inst. of Tech.
- Tokyo, Japan.
- Distribution: fj
- Date: Thu, 28 Jan 1993 12:21:23 GMT
- Lines: 62
-
- $@:4!9LZ(J@$@%Q%o%((J$@%l(J.$@El9)Bg(J $@$G$9!#(J
-
- Ng1.3L$@$K!"$^$?%P%0$,8+$D$+$j$^$7$?!#(J
- kanji.c$@$NCf$G(J free()$@$KITEv$J0z$-?t$rM?$($F$$$k(J$@$H$3$m$,$"$j$^$7$?!#(J
-
- #ifdef HANKANA $@$NHO0OFb$J$N$G(J #undef HANKANA$@$G%3%s%Q%$%k$7$??M$O(J
- $@:F%3%s%Q%$%k$9(J$@$kI,MW$O$"$j$^$;$s!#(J
-
- $@<:Ni$7$^$7$?!#(J
-
- *** kanji.c~ Wed Jan 27 10:52:52 1993
- --- kanji.c Wed Jan 27 10:56:40 1993
- ***************
- *** 1392,1404 ****
- {
- register int c1, c2; /* 90.07.25 Add "register". */
- /* by S.Yoshida */
- ! register char *porg, *cp, *endcp;
-
- if ( len == 0 ) return(0);
- ! if((cp = malloc((unsigned)(len))) == NULL) {
- ewprintf("Could not allocate %d bytes", len);
- return(-1);
- }
- bcopy(p, cp, len);
- endcp = cp + len;
- porg = p;
- --- 1392,1405 ----
- {
- register int c1, c2; /* 90.07.25 Add "register". */
- /* by S.Yoshida */
- ! register char *porg, *tmpstr, *cp, *endcp;
-
- if ( len == 0 ) return(0);
- ! if((tmpstr = malloc((unsigned)(len))) == NULL) {
- ewprintf("Could not allocate %d bytes", len);
- return(-1);
- }
- + cp = tmpstr;
- bcopy(p, cp, len);
- endcp = cp + len;
- porg = p;
- ***************
- *** 1417,1423 ****
- *p++ = c1;
- }
- }
- ! free(cp);
- return(p - porg);
- }
- #else /* not HANKANA */
- --- 1418,1424 ----
- *p++ = c1;
- }
- }
- ! free(tmpstr);
- return(p - porg);
- }
- #else /* not HANKANA */
- --
- $@!!!!!!!!El5~9)6HBg3X!!EE5$EE;R9)3X@l96!!?<Hx8&5f<<!!(J(M1)$@!!:4!9LZLPI'(J
- $@!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(Jssasaki@ee.titech.ac.jp
-