Semi Documented -s value SEGFAULTs

Carter Bullard carter at qosient.com
Mon Apr 22 11:46:03 EDT 2013


The "xxx" field is suppose to print a spacer, but its only partially implemented.
Here is a patch to fix the SEGFAULT:

==== //depot/argus/clients/common/argus_util.c#322 - /Users/carter/argus/clients/common/argus_util.c ====
3748c3748,3749
<       if (parser->RaPrintAlgorithmList[parser->RaPrintIndex] != NULL) {
---
>       if ((parser->RaPrintAlgorithm = parser->RaPrintAlgorithmList[parser->RaPrintIndex]) != NULL) {
>          if (parser->RaPrintAlgorithm->print != NULL) { 
3750d3750
<          parser->RaPrintAlgorithm = parser->RaPrintAlgorithmList[parser->RaPrintIndex];
3813a3814
>          }
13683c13684,13685
<             if ((void *) parser->RaPrintAlgorithmList[i]->print == (void *) RaPrintAlgorithmTable[x].print) {
---
>             if (((void *) parser->RaPrintAlgorithmList[i]->print != NULL) &&
>                 ((void *) parser->RaPrintAlgorithmList[i]->print == (void *) RaPrintAlgorithmTable[x].print)) {


Thanks !!!!!
Carter


On Apr 22, 2013, at 8:42 AM, "Dave Edelman" <dedelman at iname.com> wrote:

> Carter,
> 
> The -s value of xxx looks like it might be useful for some things that I'm
> doing. I understand that it doesn't show up in the man page but when I try
> to use it, I get a SEGFAULT where other sets of random letters just get
> ignored. 
> 
> --Dave
> 
> 




More information about the argus mailing list