From 8da80a379f0e76defba27b6b489137b77acd0ead Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 7 Aug 2015 15:21:20 +0200 Subject: Fix watermark initialisation --- src/fig/FIG0.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/fig') diff --git a/src/fig/FIG0.cpp b/src/fig/FIG0.cpp index e8f341c..13b21f7 100644 --- a/src/fig/FIG0.cpp +++ b/src/fig/FIG0.cpp @@ -617,12 +617,20 @@ FillStatus FIG0_9::fill(uint8_t *buf, size_t max_size) //=========== FIG 0/10 =========== FIG0_10::FIG0_10(FIGRuntimeInformation *rti) : - m_rti(rti) + m_rti(rti), + m_watermarkSize(0), + m_watermarkPos(0) { uint8_t buffer[sizeof(m_watermarkData) / 2]; snprintf((char*)buffer, sizeof(buffer), "%s %s, compiled at %s, %s", - PACKAGE_NAME, PACKAGE_VERSION, __DATE__, __TIME__); + PACKAGE_NAME, +#if defined(GITVERSION) + GITVERSION, +#else + PACKAGE_VERSION, +#endif + __DATE__, __TIME__); memset(m_watermarkData, 0, sizeof(m_watermarkData)); m_watermarkData[0] = 0x55; // Sync -- cgit v1.2.3