1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00

Fixed an issue with SB_CopyBuf

git-svn-id: svn://svn.cc65.org/cc65/trunk@2494 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-10-10 14:47:29 +00:00
parent 32c160b07a
commit d88ee416f0
2 changed files with 8 additions and 6 deletions

View File

@ -7,9 +7,9 @@
/* */ /* */
/* */ /* */
/* (C) 2001-2002 Ullrich von Bassewitz */ /* (C) 2001-2002 Ullrich von Bassewitz */
/* Wacholderweg 14 */ /* Römerstrasse 52 */
/* D-70597 Stuttgart */ /* D-70794 Filderstadt */
/* EMail: uz@musoftware.de */ /* EMail: uz@cc65.org */
/* */ /* */
/* */ /* */
/* This software is provided 'as-is', without any expressed or implied */ /* This software is provided 'as-is', without any expressed or implied */
@ -177,6 +177,7 @@ void SB_Copy (StrBuf* Target, const StrBuf* Source)
/* Copy Source to Target, discarding the old contents of Target */ /* Copy Source to Target, discarding the old contents of Target */
{ {
SB_CopyBuf (Target, Source->Buf, Source->Len); SB_CopyBuf (Target, Source->Buf, Source->Len);
Target->Index = Source->Index;
} }
#endif #endif

View File

@ -7,9 +7,9 @@
/* */ /* */
/* */ /* */
/* (C) 2001-2002 Ullrich von Bassewitz */ /* (C) 2001-2002 Ullrich von Bassewitz */
/* Wacholderweg 14 */ /* Römerstrasse 52 */
/* D-70597 Stuttgart */ /* D-70794 Filderstadt */
/* EMail: uz@musoftware.de */ /* EMail: uz@cc65.org */
/* */ /* */
/* */ /* */
/* This software is provided 'as-is', without any expressed or implied */ /* This software is provided 'as-is', without any expressed or implied */
@ -237,6 +237,7 @@ INLINE void SB_Copy (StrBuf* Target, const StrBuf* Source)
/* Copy Source to Target, discarding the old contents of Target */ /* Copy Source to Target, discarding the old contents of Target */
{ {
SB_CopyBuf (Target, Source->Buf, Source->Len); SB_CopyBuf (Target, Source->Buf, Source->Len);
Target->Index = Source->Index;
} }
#else #else
void SB_Copy (StrBuf* Target, const StrBuf* Source); void SB_Copy (StrBuf* Target, const StrBuf* Source);