Mail Archives: djgpp/2002/03/29/04:35:48
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f
|
Message-ID: | <000901c1d705$54851260$7864bcd4@rcomputer>
|
From: | "MaxEd" <max-savenkov AT mtu-net DOT ru>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Probably a bug?
|
Date: | Fri, 29 Mar 2002 12:37:22 +0300
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 5.00.2615.200
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200
|
Reply-To: | djgpp AT delorie DOT com
|
This is a multi-part message in MIME format.
------=_NextPart_000_0006_01C1D71E.78F81700
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
Sometimes variables get corrupted. For example:
...
Map[Players[i].x][Players[i].y]].Objects[5].tile=3D0;
Ocassionaly, "Map[3][2].tex" variable becomes some value as =
"Map[Players[i].x][Players[i].y]].Objects[5].tile"
Another example is:
if (strcmp(strcpy(array[i].name,"someting"),"andsomething")...
and next strcpy brings us a corrupted variable:
...
strcpy(t1,"sometext");
t1 becomes "omething" (without "s")
I met this problem several other times and it's not in bug list. =
Probably this is not a bug at all, but then I should be
doing something wrong. I wish I know what.
------=_NextPart_000_0006_01C1D71E.78F81700
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dkoi8-r" http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#fff0e8>
<DIV><FONT face=3D"Arial Cyr" size=3D2>Sometimes variables get =
corrupted. For=20
example:</FONT></DIV>
<DIV><FONT face=3D"Arial Cyr" size=3D2>...</FONT></DIV>
<DIV><FONT face=3D"Arial Cyr"=20
size=3D2>Map[Players[i].x][Players[i].y]].Objects[5].tile=3D0;</FONT></DI=
V>
<DIV> </DIV>
<DIV><FONT face=3D"Arial Cyr" size=3D2>Ocassionaly, "Map[3][2].tex" =
variable becomes=20
some value as "<FONT face=3D"Arial Cyr"=20
size=3D2>Map[Players[i].x][Players[i].y]].Objects[5].tile"</FONT></FONT><=
/DIV>
<DIV> </DIV>
<DIV><FONT face=3D"Arial Cyr" size=3D2>Another example is:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"Arial Cyr" size=3D2>if=20
(strcmp(strcpy(array[i].name,"someting"),"andsomething")...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"Arial Cyr" size=3D2>and next strcpy brings us a =
corrupted=20
variable:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"Arial Cyr" size=3D2>...</FONT></DIV>
<DIV><FONT face=3D"Arial Cyr" =
size=3D2>strcpy(t1,"sometext");</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"Arial Cyr" size=3D2>t1 becomes "omething" (without=20
"s")</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"Arial Cyr" size=3D2>I met this problem several other =
times and=20
it's not in bug list. Probably this is not a bug at all, but then I =
should=20
be</FONT></DIV>
<DIV><FONT face=3D"Arial Cyr" size=3D2>doing something wrong. I wish I =
know=20
what.</FONT></DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0006_01C1D71E.78F81700--
- Raw text -