- various bug fixes and improvements
- modified automatic instrument detection on six and tecs client
This commit is contained in:
@@ -11,8 +11,8 @@ static char *getItem(char *line, char *name, char *value, int value_len) {
|
||||
|
||||
snprintf(find, sizeof find, "%s=%s", name, value);
|
||||
found = strstr(line, find);
|
||||
if (found && *value != '\0' && found[strlen(find)] > ' ') {
|
||||
/* when value is given, it must be complete */
|
||||
if (found && *value != '\0' && found[strlen(find)] > ' ' && found[strlen(find)] != '.') {
|
||||
/* when value is given, it must be complete, (a dot or a space terminates the value) */
|
||||
found = NULL;
|
||||
}
|
||||
if (found) {
|
||||
@@ -75,7 +75,7 @@ int InstrHost(char *service, char *input, char *instr, int instr_len,
|
||||
crit = "host";
|
||||
input = getenv("HOST");
|
||||
} else {
|
||||
crit="instr";
|
||||
crit = "instr";
|
||||
}
|
||||
finished = 0;
|
||||
while (NULL != fgets(line, sizeof line, fil)) {
|
||||
|
||||
Reference in New Issue
Block a user