[Issue 821] segfault with char array copy; mistaken samples in doc

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 9 23:00:40 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=821


lio at lunesu.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
          Component|DMD                         |www.digitalmars.com
         Resolution|INVALID                     |
            Summary|segfault with char array    |segfault with char array
                   |copy                        |copy; mistaken samples in
                   |                            |doc




------- Comment #4 from lio at lunesu.com  2007-01-10 01:00 -------
I've changed the component to "www.digitalmars.com", since the samples are
definitely wrong.

http://digitalmars.com/d/cppstrings.html
#Copying a String
#Filling a String
These two need .dup added to prevent modifying read-only strings.

#Conversions to C Strings
The second sample needs foo(s1.ptr);


-- 



More information about the Digitalmars-d-bugs mailing list