# HG changeset patch # User Florian Pose # Date 1326191403 -3600 # Node ID 5538f60ea32c0a4013c21008564605a9d27137c5 # Parent 37467d2f23fbc54d43bec120a37bc5eb161884f7 Decreased maximum length of error message to avoid stack warning. diff -r 37467d2f23fb -r 5538f60ea32c master/fsm_foe.c --- a/master/fsm_foe.c Tue Jan 10 10:58:19 2012 +0100 +++ b/master/fsm_foe.c Tue Jan 10 11:30:03 2012 +0100 @@ -762,7 +762,7 @@ EC_SLAVE_ERR(slave, "Received FoE Error Request (code 0x%08x).\n", fsm->request->error_code); if (rec_size > 6) { - uint8_t text[1024]; + uint8_t text[256]; strncpy(text, data + 6, min(rec_size - 6, sizeof(text))); EC_SLAVE_ERR(slave, "FoE Error Text: %s\n", text); }