Yet Another Bug Report
Carter Bullard
carter at qosient.com
Fri Apr 10 14:57:25 EDT 2009
Hey Dan,
Thanks!!!!!!!!
Carter
On Apr 10, 2009, at 2:11 PM, Daniel Klein wrote:
> In argus_utils.c, ArgusPrintDir, the XML version has an error. It
> reads:
>
> for (i = 0, len = strlen(dirStr); i < len; i++) {
> if (*dptr == '<')
> sprintf (&ndirStr[strlen(ndirStr)], "<");
> else if (*dptr == '>')
> sprintf (&ndirStr[strlen(ndirStr)], "<");
> else
> sprintf (&ndirStr[strlen(ndirStr)], "%c", *dptr);
> dptr++;
> }
>
> and really ought to read like this, with the second '<' changed
> to an '>':
>
> for (i = 0, len = strlen(dirStr); i < len; i++) {
> if (*dptr == '<')
> sprintf (&ndirStr[strlen(ndirStr)], "<");
> else if (*dptr == '>')
> sprintf (&ndirStr[strlen(ndirStr)], ">");
> else
> sprintf (&ndirStr[strlen(ndirStr)], "%c", *dptr);
> dptr++;
> }
>
> -Dan
>
>
>
More information about the argus
mailing list