version 1.35 | | version 1.36 |
---|
| | |
/* | | /* |
* static char *rcsid_map_c = | | * static char *rcsid_map_c = |
* "$Id: map.c,v 1.35 2002/01/03 21:32:56 garbled Exp $"; | | * "$Id: map.c,v 1.36 2002/02/06 05:54:46 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
msgpos += strlen(buf); | | msgpos += strlen(buf); |
} | | } |
} | | } |
| | /* There are lots of maps that have empty messages (eg, msg/endmsg |
| | * with nothing between). There is no reason in those cases to |
| | * keep the empty message. Also, msgbuf contains garbage data |
| | * when msgpos is zero, so copying it results in crashes |
| | */ |
| | if (msgpos != 0) |
m->msg = strdup_local(msgbuf); | | m->msg = strdup_local(msgbuf); |
} | | } |
/* first strcmp value on these are old names supported | | /* first strcmp value on these are old names supported |