diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h
index b9d5d9f9b3486c5e92346d4d91c45177196fd2ef..523bc7027626c5791b1c9744f7dacee2fc3fd3c8 100644
--- a/sql/mysql_priv.h
+++ b/sql/mysql_priv.h
@@ -178,7 +178,7 @@ MY_LOCALE *my_locale_by_number(uint number);
 #define STACK_MIN_SIZE          12000   // Abort if less stack during eval.
 
 #define STACK_MIN_SIZE_FOR_OPEN 1024*80
-#define STACK_BUFF_ALLOC	256	// For stack overrun checks
+#define STACK_BUFF_ALLOC        352     // For stack overrun checks
 #ifndef MYSQLD_NET_RETRY_COUNT
 #define MYSQLD_NET_RETRY_COUNT  10	// Abort read after this many int.
 #endif