Subject: Re: ERRMAX in lib-src/pop.c

From: Paul Eggert <[email-masked]>
Date: Tue, 12 Mar 2013 13:00:47 -0700

Sorry about the typo; it didn't trigger on my compilation platforms.

Here's the obvious patch.  Glenn, should I install this into
the emacs-24 branch or into the trunk?  I'm a bit fuzzy on
the branch status now that 24.3 has been released.

=== modified file 'lib-src/ChangeLog'
--- lib-src/ChangeLog	2013-03-11 02:35:23 +0000
+++ lib-src/ChangeLog	2013-03-12 19:57:55 +0000
@@ -1,3 +1,9 @@
+2013-03-12  Paul Eggert  <[email-masked]>
+
+	* pop.c: Fix ERRMAX typo (Bug#13925).
+	(socket_connection) [!HAVE_KRB5_ERROR_TEXT && HAVE_KRB5_ERROR_E_TEXT]:
+	Use ERROR_MAX, not ERRMAX.
+
 2013-03-11  Glenn Morris  <[email-masked]>
 
 	* Version 24.3 released.

=== modified file 'lib-src/pop.c'
--- lib-src/pop.c	2013-01-01 09:11:05 +0000
+++ lib-src/pop.c	2013-03-12 19:56:43 +0000
@@ -1198,7 +1198,7 @@
 	    }
 #elif defined HAVE_KRB5_ERROR_E_TEXT
 	  if (err_ret && err_ret->e_text && **err_ret->e_text)
-	    snprintf (pop_error + pop_error_len, ERRMAX - pop_error_len,
+	    snprintf (pop_error + pop_error_len, ERROR_MAX - pop_error_len,
 		      " [server says '%s']", *err_ret->e_text);
 #endif
 	  if (err_ret)