Yet Another Bug Report
Daniel Klein
dk0w at andrew.cmu.edu
Fri Apr 10 14:11:52 EDT 2009
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