From 2af435986f14b14171c8581fff090ea9fb41fc61 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 29 Jul 2011 15:12:41 +0200 Subject: fix off-by-one error in OSMO_NUM_DLIB This bug was introduced in 95f7eb288c4b8b69d61fa8d68957fb21f09e11e5 and it caused a segfault on 'write terminal' --- include/osmocom/core/logging.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/osmocom/core') diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h index 06d90e52..154ee198 100644 --- a/include/osmocom/core/logging.h +++ b/include/osmocom/core/logging.h @@ -43,7 +43,7 @@ void logp(int subsys, char *file, int line, int cont, const char *format, ...) _ #define DLMUX -4 #define DLMI -5 #define DLMIB -6 -#define OSMO_NUM_DLIB 7 +#define OSMO_NUM_DLIB 6 struct log_category { uint8_t loglevel; -- cgit v1.2.3