Ignore:
Timestamp:
Jul 2, 2011, 3:35:33 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update trunk to 3.5.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/librpc/ndr/ndr_string.c

    r414 r596  
    715715_PUBLIC_ uint32_t ndr_charset_length(const void *var, charset_t chset)
    716716{
    717         /* FIXME: Treat special chars special here, taking chset into account */
    718         /* Also include 0 byte */
     717        switch (chset) {
     718        /* case CH_UTF16: this has the same value as CH_UTF16LE */
     719        case CH_UTF16LE:
     720        case CH_UTF16BE:
     721        case CH_UTF16MUNGED:
     722        case CH_UTF8:
     723                return strlen_m_ext_term((const char *)var, chset);
     724        case CH_DISPLAY:
     725        case CH_DOS:
     726        case CH_UNIX:
     727                return strlen((const char *)var)+1;
     728        }
     729
     730        /* Fallback, this should never happen */
    719731        return strlen((const char *)var)+1;
    720732}
Note: See TracChangeset for help on using the changeset viewer.