From c6a91935936b62e0c80a786d3605fea0f8a3f5e9 Mon Sep 17 00:00:00 2001 From: weetmuts Date: Mon, 5 Mar 2018 11:32:55 +0100 Subject: [PATCH] Buf fix. --- meter_multical21.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meter_multical21.cc b/meter_multical21.cc index c8d4096..e4a217d 100644 --- a/meter_multical21.cc +++ b/meter_multical21.cc @@ -143,7 +143,7 @@ void MeterMultical21::handleTelegram(Telegram *t) { if (t->a_field_device_type != 0x16) { warning("(multical21) expected telegram for water media, but got \"%s\"!\n", - mediaType(t->m_field, t->a_field_device_type)); + mediaType(t->m_field, t->a_field_device_type).c_str()); } if (t->m_field != manufacturer() ||