*===========================================================================*/
PUBLIC int do_subscribe(message *m_ptr)
{
- char regex[DS_MAX_KEYLEN+3];
+ char regex[DS_MAX_KEYLEN+2];
struct subscription *subp;
char errbuf[80];
char *owner;
* and the usual case is for a complete match.
*/
regex[0] = '^';
- if((r = get_key_name(m_ptr, regex)) != OK)
+ if((r = get_key_name(m_ptr, regex+1)) != OK)
return r;
- regex[DS_MAX_KEYLEN-1] = '\0';
strcat(regex, "$");
/* Compile regular expression. */