diff --git a/src/logger.cpp b/src/logger.cpp index d66bbad7..f87e860c 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -133,7 +133,7 @@ void motion_log(int level, int type, int errno_flag,int fncname, const char *fmt static int flood_cnt = 0; static char flood_msg[1024]; - static char prefix_msg[1024]; + static char prefix_msg[512]; char flood_repeats[1024]; char threadname[32]; int applvl, apptyp; diff --git a/src/webu.cpp b/src/webu.cpp index 776605e6..9dd6289f 100644 --- a/src/webu.cpp +++ b/src/webu.cpp @@ -780,7 +780,7 @@ static mhdrslt webu_iterate_post (void *ptr, enum MHD_ValueKind kind /* Answer the get request from the user */ static mhdrslt webu_answer_get(struct ctx_webui *webui) { - int retcd; + mhdrslt retcd; MOTION_LOG(DBG, TYPE_STREAM, NO_ERRNO ,"processing get");