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

« back to all changes in this revision

Viewing changes to src/xlibi18n/lcDB.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:
14
14
 * software without specific, written prior permission.
15
15
 *
16
16
 * IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
17
 
 * ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS, AND 
 
17
 * ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS, AND
18
18
 * NONINFRINGEMENT OF THIRD PARTY RIGHTS, IN NO EVENT SHALL
19
19
 * IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
20
20
 * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
551
551
    return 0;
552
552
}
553
553
 
554
 
static int 
 
554
static int
555
555
construct_name(
556
556
    char *name,
557
557
    int size)
836
836
        len = get_quoted_word(str, wordp);
837
837
        if (len < 1)
838
838
            goto err;
839
 
        if ((parse_info.bufsize + (int)strlen(wordp) + 1) 
 
839
        if ((parse_info.bufsize + (int)strlen(wordp) + 1)
840
840
                                        >= parse_info.bufMaxSize) {
841
841
            if (realloc_parse_info(strlen(wordp)+1) == False) {
842
842
                goto err;
898
898
        len = get_word(p, wordp);
899
899
        if (len < 1)
900
900
            goto err;
901
 
        if ((parse_info.bufsize + token_len + (int)strlen(wordp) + 1) 
 
901
        if ((parse_info.bufsize + token_len + (int)strlen(wordp) + 1)
902
902
                                        >= parse_info.bufMaxSize) {
903
903
            if (realloc_parse_info(token_len + strlen(wordp) + 1) == False)
904
904
                goto err;
975
975
        break;
976
976
    case S_NAME:
977
977
    case S_VALUE:
978
 
        if ((parse_info.bufsize + (int)strlen(wordp) + 1) 
 
978
        if ((parse_info.bufsize + (int)strlen(wordp) + 1)
979
979
                                        >= parse_info.bufMaxSize) {
980
980
            if (realloc_parse_info(strlen(wordp) + 1) == False)
981
981
                goto err;