[Xastir] strcat/strcpy/strncpy functions
Curt, WE7U
archer at eskimo.com
Fri Aug 20 16:49:31 EDT 2004
On Fri, 20 Aug 2004, Jason Hitesman wrote:
> I don't want to sound like I'm complaining since that's not my intent -
Understand. I want to get the newly introduced (by me!) bugs
squashed quickly.
Here's a fix, in db.c:
xastir_snprintf(strp,
// sizeof(strp), // No good, as strp is a pointer
(int)(sizeof(temp_data) / 2),
"%s",
my_long);
strp[10] = '\0';
It's at about line 11500.
--
Curt, WE7U http://www.eskimo.com/~archer
"Lotto: A tax on people who are bad at math." -- unknown
"Windows: Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me: I picked the coordinate system!"
More information about the Xastir
mailing list