On Sat, 28 Apr 2007, [EMAIL PROTECTED] wrote:

> Patch for 2.1.22 enclosed...
> 
>  strncpy(refbase,refhost,strlen(refhost));
>  sp = refbase + strlen(refbase) - 1;
>  while ( isdigit((int)*sp) ) { sp--; }
>  sp++;
>  sscanf(sp,"%ld",&cmp);
>  *sp = '\0';
> 
> ...instead.
> 
> Mark: let me know if it doesn't work for you.

Looks good here, nicely done

SRDEBUG FuzzyHostMatch(pa2-dhcp-192-168-230-,01-50,pa2-dhcp-192-168-230-46) 
succeeded


-- 
 - Eric Sorenson - N37 17.255 W121 55.738  - http://ahpook.vox.com/   -
 - Personal colo with a professional touch - http://www.explosive.net -
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to