- various bug fixes and improvements

- modified automatic instrument detection on six and tecs client
This commit is contained in:
zolliker
2005-11-17 07:58:07 +00:00
parent 01fce80d95
commit 4c7f439377
5 changed files with 31 additions and 8 deletions

View File

@@ -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)) {