Ignore:
Timestamp:
May 29, 2008, 12:22:03 PM (17 years ago)
Author:
Paul Smedley
Message:

Update trunk to 3.2.0rc1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/libsmb/climessage.c

    r133 r136  
    7272{
    7373        char *msgdos;
    74         int lendos;
     74        size_t lendos;
    7575        char *p;
    7676
     
    8686        *p++ = 1;
    8787
    88         if ((lendos = (int)convert_string_allocate(NULL,CH_UNIX, CH_DOS, msg,len, (void **)(void *)&msgdos, True)) < 0 || !msgdos) {
     88        if (!convert_string_allocate(NULL, CH_UNIX, CH_DOS, msg, len,
     89                (void **)(void *)&msgdos, &lendos, True) || !msgdos) {
    8990                DEBUG(3,("Conversion failed, sending message in UNIX charset\n"));
    9091                SSVAL(p, 0, len); p += 2;
Note: See TracChangeset for help on using the changeset viewer.