Changeset 1801


Ignore:
Timestamp:
Jan 31, 2005, 5:18:52 AM (21 years ago)
Author:
bird
Message:

Bad & in collate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/locale/setlocale.c

    • Property cvs2svn:cvs-rev changed from 1.15 to 1.16
    r1800 r1801  
    397397        return rc;
    398398
    399     if (&pCollate->mbcs)
     399    if (pCollate->mbcs)
    400400    {
    401401        /*
     
    13551355            int     cch1 = strlen(pszLocale);
    13561356            int     cch2 = strlen(szCodepageActual);
    1357             int     cch3 = pszModifier ? strlen(pszModifier) : 0;
    1358             char   *psz = pTemp->Global.apszNames[iCategory + 1] = malloc(cch1 + cch2 + cch3 + !!cch3 + 2);
     1357            int     cch3 = pszModifier ? strlen(pszModifier) + 1 : 0;
     1358            char   *psz = pTemp->Global.apszNames[iCategory + 1] = malloc(cch1 + cch2 + cch3 + 2);
    13591359            if (!psz)
    13601360                return -ENOMEM;
     
    13651365            memcpy(psz, szCodepageActual, cch2);
    13661366            psz += cch2;
     1367            *psz = '\0';
    13671368
    13681369            if (cch3)
     
    13701371                *psz++ = '@';
    13711372                memcpy(psz, pszModifier, cch3);
    1372                 psz += cch3;
    13731373            }
    1374             *psz = '\0';
    13751374
    13761375            LIBCLOG_MSG2("Setting iCategory='%d''%s' locale value to '%s'\n",
Note: See TracChangeset for help on using the changeset viewer.