/[monit]/monit/protocols/generic.c
ViewVC logotype

Diff of /monit/protocols/generic.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by hauk, Tue Oct 7 23:40:52 2003 UTC revision 1.5 by hauk, Wed Oct 15 23:34:59 2003 UTC
# Line 108  int check_generic(Socket_T s) { Line 108  int check_generic(Socket_T s) {
108  #else  #else
109        /* w/o regex support */        /* w/o regex support */
110    
111        if ( strncmp(buf, g->expect, sizeof(g->expect)) != 0 ) {        if ( strncmp(buf, g->expect, strlen(g->expect)) != 0 ) {
112    
113          log("GENERIC: receiving unexpected data\n");          log("GENERIC: receiving unexpected data\n");
114          return FALSE;          return FALSE;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26