@cryptotaxi247 / netdata-1 / commits / 83519b5df

Check for non ascii characters in health log (#11193)

* check for non ascii characters in health log * use c for check * correct check of c * use unsigned char * remove check for non-ascii

Emmanuel Vasilakis committed Jun 2, 2021 at 15:47 UTC 83519b5df70bb20f7bc5a8f19209c4bb881d4831
1 file changed +1 -1
health/health_log.c
+1 -1
@@ -368,7 +368,7 @@ static inline ssize_t health_alarm_log_read(RRDHOST *host, FILE *fp, const char
368
369 ae->last_repeat = last_repeat;
370
371 - if (likely(entries > 28)) {
371 + if (likely(entries > 30)) {
372 freez(ae->classification);
373 ae->classification = strdupz(pointers[28]);
374 if(!*ae->classification) { freez(ae->classification); ae->classification = NULL; }