Changeset 144 for Evidence/Evidence.cc
- Timestamp:
- 01/18/10 08:41:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Evidence/Evidence.cc
r142 r144 95 95 va_end(ArgumentPointer); 96 96 97 snprintf(TBuf, sizeof(TBuf), "%s (%s): %s", StatusName, StateString[Severity], Tmp); 98 snprintf(SBuf, sizeof(SBuf), "%s \0%d", Tmp);99 97 snprintf(TBuf, sizeof(TBuf), "%s (%s): %s", StatusName, StateString[Severity], Tmp); // Normal string 98 snprintf(SBuf, sizeof(SBuf), "%s*%c", Tmp, (char) Severity); 99 *(strrchr(SBuf, '*')) = '\0'; // String with severity encoding 100 100 if (Tmp != ErrorString) free(Tmp); 101 101 … … 122 122 123 123 // Check if configuration request already in list 124 for ( int i=0; i<ConfigNum; i++) {124 for (unsigned int i=0; i<ConfigNum; i++) { 125 125 if (strcmp(ConfigList[i].Name, Item) == 0) { 126 126 // Return original value if still up to date
Note:
See TracChangeset
for help on using the changeset viewer.