|
|||||||||||
|
(no subject)
From: Richard Guy Briggs <rgb(at)conscoop.ottawa.on.ca>
Date: Wed Jul 29 1998 - 15:24:51 EDT
Here is the mod to addrtoa.c:
strcpy(dst, buf);
#endif
Here is the mod to ultoa.c:
strcpy(dst, p);
#endif I mucked it up because the variable 'n' was not used consistently between the source modules. Instead of using #if 0 to eliminate it, perhaps we could use:
The other change is in datatoa.c:
case 2:
/* strcpy(dst, "0"); */
/* dst += 1; */
*dst++ = '0';
*dst = '\0';
break;
default:
/* strcpy(dst, "0x"); */
/* dst += 2; */
*dst++ = '0';
*dst++ = 'x';
*dst = '\0';
break;
In some ways, I prefer this, as then nobody will forget to update the 'dst +=' line. Obviously, the regression tests did not need to have strcpy changed. I have some stuff to check in... slainte mhath, RGB
"We left our footprints in the Earth
-----BEGIN PGP SIGNATURE-----
iQCVAwUBNb93Ad+sBuIhFagtAQGePgP/bdVZTSnNaHGVj9Nx1SigRAOl+YznqokJ
jTwxonbKrimxoa5N/YM54Do+XqRcLaypiNq4TaaMMl26ijz9gHUZvftFtJqRS2J4
0UGfvdJpsr6c7V2wR3c+O3M1OocTSuQk5/jS+C8lQULT8zl4tCAw2vvTV2ThDDun
np0+W+9eOSI=
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:59:25 EDT |
||||||||||
|
|||||||||||