~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to src/xlibi18n/lcTxtPr.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-17 16:34:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090117163454-gaey3cd32xyavueo
Tags: 2:1.1.99.2-1build1
Fakesync with Debian, all previous Ubuntu changes are included
in the new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
    buf_len = get_buf_size(is_wide_char, list, count);
94
94
    if ((buf = (char *) Xmalloc(buf_len)) == NULL)
95
95
        return XNoMemory;
96
 
    
 
96
 
97
97
    switch (style) {
98
98
        case XStringStyle:
99
99
        case XStdICCTextStyle:
116
116
                mb_list = (char **) list;
117
117
                to = buf;
118
118
                for (i = 0; i < count && buf_len > 0; i++) {
119
 
                    if (*mb_list) 
 
119
                    if (*mb_list)
120
120
                        strcpy(to, *mb_list);
121
121
                    else
122
122
                        *to = '\0';