Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3692

Show
Ignore:
Timestamp:
07/01/08 02:06:50 (2 months ago)
Author:
kris
Message:

fixed wild and crazy effect of static strings with trailing \0

Thanks to Jeff for that one :)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/text/xml/Document.d

    r3682 r3692  
    478478                            
    479479                           // is the prefix already attached to the name? 
    480                            if (prefix.ptr + prefix.length + 1 is localName.ptr) 
     480                           if (prefix.ptr + prefix.length + 1 is localName.ptr && 
     481                               ':' is *(localName.ptr-1)) 
    481482                               return prefix.ptr [0 .. len]; 
    482483