Re: Solaris 9 bug with string variable

Robert-Andre Croteau <[email protected]> Tue, 28 Jun 2005 13:43:46 -0400
Newsgroups gmane.network.bb4.devel
Message-ID <[email protected]>
Al Rankin wrote:

> #2118  space_sep(hosts);
> .  if( DEBUG ) {
> .   fprintf(stderr,"Included hosts are: <%s>\n",hosts);
> .   fflush(stderr);
> .  }  
> .  /*replacestr(hosts,sizeof(hosts),"*",".*");*/
> .  replacestr(hosts,sizeof(hosts)," ","|");
> .  if( DEBUG ) {
> .   fprintf(stderr,"Column 1 converted to a regex: <%s>\n",hosts);
> .   fflush(stderr);
> .  }
>  

the error may be here:

change

replacestr(hosts,sizeof(hosts)," ","|");

to

replacestr(hosts,hosts_maxlen," ","|");

if hosts_maxlen is defined in the code...

bye
-- 
Robert-Andre Croteau    BSD,MOTU
Quest Software, Inc.            Big Brother, Product Architect
http://www.quest.com/                          http://bb4.com/
+1 (514) 238-9374
         Si le bonheur ne s'achete pas alors louez le.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list send e-mail to mailto:[email protected]
with unsubscribe bbd in the BODY of the message.