🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Shigehiko Sasaki Thu, 28 Jan 1993 12:21
Ng 1.3L Bug fix 2
#185
Author: Shigehiko Sasaki
Date: Thu, 28 Jan 1993 12:21
62 lines
2146 bytes
$@: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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads