--- a/libiptc/libiptc.c
+++ b/libiptc/libiptc.c
@@ -69,7 +69,7 @@ static const char *hooknames[] = {
 struct ipt_error_target
 {
 	STRUCT_ENTRY_TARGET t;
-	char error[TABLE_MAXNAMELEN];
+	char error[FUNCTION_MAXNAMELEN];
 };
 
 struct chain_head;
