]> git.sur5r.net Git - cc65/commitdiff
Fixed an issue with SB_CopyBuf
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 10 Oct 2003 14:47:29 +0000 (14:47 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 10 Oct 2003 14:47:29 +0000 (14:47 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2494 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/common/strbuf.c
src/common/strbuf.h

index 2d37f1605646a161bd4b2df3829314a0c17c423f..675314dccc4a6da7c2386889297de00318bd24ed 100644 (file)
@@ -7,9 +7,9 @@
 /*                                                                           */
 /*                                                                           */
 /* (C) 2001-2002 Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/*               Römerstrasse 52                                             */
+/*               D-70794 Filderstadt                                         */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* 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 */
 {
     SB_CopyBuf (Target, Source->Buf, Source->Len);
+    Target->Index = Source->Index;
 }
 #endif
 
index 3ab71df60de194d5f00a6bd5e6039f8c8269dfce..377c1c660d7649b9141bf732fb19d25e6ab966c5 100644 (file)
@@ -7,9 +7,9 @@
 /*                                                                           */
 /*                                                                           */
 /* (C) 2001-2002 Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/*               Römerstrasse 52                                             */
+/*               D-70794 Filderstadt                                         */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* 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 */
 {
     SB_CopyBuf (Target, Source->Buf, Source->Len);
+    Target->Index = Source->Index;
 }
 #else
 void SB_Copy (StrBuf* Target, const StrBuf* Source);