From 799bf0b52bb4b8f737cd50c95bc62581e06e937f Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Sun, 12 Apr 2015 22:19:17 +0200 Subject: Fix MOT encoder debug regression --- src/mot-encoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp index e53001b..cf2133e 100644 --- a/src/mot-encoder.cpp +++ b/src/mot-encoder.cpp @@ -968,7 +968,7 @@ size_t dls_get(const char* text, const uint8_t charset, const unsigned int seg_i #if DEBUG fprintf(stderr, "DL segment:"); for (int i = 0; i < seg_len; i++) - fprintf(stderr, " %02x", dls_seg[i]); + fprintf(stderr, " %02x", seg_data[i]); fprintf(stderr, "\n"); #endif return seg_len; @@ -1025,7 +1025,7 @@ void create_dls_pads(const char* text, const int padlen, const uint8_t charset) #if DEBUG fprintf(stderr, "DLS data group:"); for (int i = 0; i < padlen; i++) - fprintf(stderr, " %02x", dg[i]); + fprintf(stderr, " %02x", pad[i]); fprintf(stderr, "\n"); #endif seg_off += dg_used; -- cgit v1.2.3