version 1.24 | | version 1.25 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.24 2002/06/01 05:38:07 mwedel Exp $"; | | * "$Id: item.c,v 1.25 2003/09/03 13:42:19 tchize Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
SockList_AddInt(&sl, QUERY_FLAG(tmp, FLAG_NO_PICK) ? -1 : WEIGHT(tmp)); | | SockList_AddInt(&sl, QUERY_FLAG(tmp, FLAG_NO_PICK) ? -1 : WEIGHT(tmp)); |
SockList_AddInt(&sl, tmp->face->number); | | SockList_AddInt(&sl, tmp->face->number); |
| | |
| | if (!tmp->custom_name) { |
strncpy(item_n,query_base_name(tmp, 0),127); | | strncpy(item_n,query_base_name(tmp, 0),127); |
item_n[127]=0; | | item_n[127]=0; |
len=strlen(item_n); | | len=strlen(item_n); |
item_p=query_base_name(tmp, 1); | | item_p=query_base_name(tmp, 1); |
| | } |
| | else { |
| | strncpy(item_n,tmp->custom_name,127); |
| | item_n[127]=0; |
| | len=strlen(item_n); |
| | item_p=tmp->custom_name; |
| | } |
strncpy(item_n+len+1, item_p, 127); | | strncpy(item_n+len+1, item_p, 127); |
item_n[254]=0; | | item_n[254]=0; |
len += strlen(item_n+1+len) + 1; | | len += strlen(item_n+1+len) + 1; |
| | |
SockList_AddInt(&sl, QUERY_FLAG(tmp, FLAG_NO_PICK) ? -1 : WEIGHT(tmp)); | | SockList_AddInt(&sl, QUERY_FLAG(tmp, FLAG_NO_PICK) ? -1 : WEIGHT(tmp)); |
SockList_AddInt(&sl, tmp->face->number); | | SockList_AddInt(&sl, tmp->face->number); |
| | |
| | if (!tmp->custom_name) { |
strncpy(item_n,query_base_name(tmp, 0),127); | | strncpy(item_n,query_base_name(tmp, 0),127); |
item_n[127]=0; | | item_n[127]=0; |
len=strlen(item_n); | | len=strlen(item_n); |
item_p=query_base_name(tmp, 1); | | item_p=query_base_name(tmp, 1); |
| | } |
| | else { |
| | strncpy(item_n,tmp->custom_name,127); |
| | item_n[127]=0; |
| | len=strlen(item_n); |
| | item_p=tmp->custom_name; |
| | } |
strncpy(item_n+len+1, item_p, 127); | | strncpy(item_n+len+1, item_p, 127); |
item_n[254]=0; | | item_n[254]=0; |
len += strlen(item_n+1+len) + 1; | | len += strlen(item_n+1+len) + 1; |
| | |
int len; | | int len; |
char *item_p, item_n[MAX_BUF]; | | char *item_p, item_n[MAX_BUF]; |
| | |
| | if (!op->custom_name) { |
strncpy(item_n,query_base_name(op, 0),127); | | strncpy(item_n,query_base_name(op, 0),127); |
item_n[127]=0; | | item_n[127]=0; |
len=strlen(item_n); | | len=strlen(item_n); |
item_p=query_base_name(op, 1); | | item_p=query_base_name(op, 1); |
| | } |
| | else { |
| | strncpy(item_n,op->custom_name,127); |
| | item_n[127]=0; |
| | len=strlen(item_n); |
| | item_p=op->custom_name; |
| | } |
| | |
strncpy(item_n+len+1, item_p, 127); | | strncpy(item_n+len+1, item_p, 127); |
item_n[254]=0; | | item_n[254]=0; |
len += strlen(item_n+1+len) + 1; | | len += strlen(item_n+1+len) + 1; |
| | |
SockList_AddInt(&sl, WEIGHT(op)); | | SockList_AddInt(&sl, WEIGHT(op)); |
SockList_AddInt(&sl, op->face->number); | | SockList_AddInt(&sl, op->face->number); |
| | |
| | if(!op->custom_name) { |
strncpy(item_n,query_base_name(op, 0),127); | | strncpy(item_n,query_base_name(op, 0),127); |
item_n[127]=0; | | item_n[127]=0; |
len=strlen(item_n); | | len=strlen(item_n); |
item_p=query_base_name(op, 1); | | item_p=query_base_name(op, 1); |
| | } else { |
| | strncpy(item_n,op->custom_name,127); |
| | item_n[127]=0; |
| | len=strlen(item_n); |
| | item_p=op->custom_name; |
| | } |
strncpy(item_n+len+1, item_p, 127); | | strncpy(item_n+len+1, item_p, 127); |
item_n[254]=0; | | item_n[254]=0; |
len += strlen(item_n+1+len) + 1; | | len += strlen(item_n+1+len) + 1; |