Lines Matching defs:bufleft

860     long		bufleft; /* length of reply left to use */
892 bufleft = rep->length << 2;
893 bufleft -= SIZEOF(fsQueryXInfoReply);
902 if (bufleft < SIZEOF(fsPropInfo))
906 fprintf(stderr, "fsQueryXInfo: bufleft (%ld) < SIZEOF(fsPropInfo)\n",
907 bufleft);
913 bufleft -= SIZEOF(fsPropInfo);
915 if ((bufleft / SIZEOF(fsPropOffset)) < pi->num_offsets)
920 "fsQueryXInfo: bufleft (%ld) / SIZEOF(fsPropOffset) < %u\n",
921 bufleft, (unsigned) pi->num_offsets);
927 bufleft -= pi->num_offsets * SIZEOF(fsPropOffset);
929 if (bufleft < pi->data_len)
934 "fsQueryXInfo: bufleft (%ld) < data_len (%u)\n",
935 bufleft, (unsigned) pi->data_len);
941 bufleft -= pi->data_len;
1897 long bufleft; /* length of reply left to use */
1929 bufleft = rep->length << 2;
1930 bufleft -= SIZEOF (fsQueryXBitmaps16Reply);
1932 if ((bufleft / SIZEOF (fsOffset32)) < rep->num_chars)
1936 "fsQueryXBitmaps16: num_chars (%u) > bufleft (%ld) / %d\n",
1937 (unsigned) rep->num_chars, bufleft, SIZEOF (fsOffset32));
1944 bufleft -= SIZEOF (fsOffset32) * (rep->num_chars);
1946 if (bufleft < rep->nbytes)
1950 "fsQueryXBitmaps16: nbytes (%u) > bufleft (%ld)\n",
1951 (unsigned) rep->nbytes, bufleft);
2466 long bufleft;
2503 bufleft = (rep->length << 2) - SIZEOF (fsListFontsWithXInfoReply);
2512 if (rep->nameLength > bufleft) {
2515 "fsListFontsWithXInfo: name length (%d) > bufleft (%ld)\n",
2516 (int) rep->nameLength, bufleft);
2524 bufleft -= _fs_pad_length (rep->nameLength);
2527 if (SIZEOF (fsPropInfo) > bufleft) {
2530 "fsListFontsWithXInfo: PropInfo length (%d) > bufleft (%ld)\n",
2531 (int) SIZEOF (fsPropInfo), bufleft);
2536 bufleft -= SIZEOF (fsPropInfo);
2539 if (pi->num_offsets > (bufleft / SIZEOF (fsPropOffset))) {
2542 "fsListFontsWithXInfo: offset length (%u * %d) > bufleft (%ld)\n",
2543 (unsigned) pi->num_offsets, (int) SIZEOF (fsPropOffset), bufleft);
2548 bufleft -= pi->num_offsets * SIZEOF (fsPropOffset);
2551 if (pi->data_len > bufleft) {
2554 "fsListFontsWithXInfo: data length (%u) > bufleft (%ld)\n",
2555 (unsigned) pi->data_len, bufleft);
2560 bufleft -= pi->data_len;
2564 if (rep->nameLength > bufleft) {
2567 "fsListFontsWithXInfo: name length (%d) > bufleft (%ld)\n",
2568 (int) rep->nameLength, bufleft);
2576 bufleft -= _fs_pad_length (rep->nameLength);