]> code.delx.au - gnu-emacs/blobdiff - src/doprnt.c
Avoid undefined behavior with huge regexp interval counts.
[gnu-emacs] / src / doprnt.c
index b8e1b5472689fc35aa7de87e7b9f036c58d3aa08..471e35c7b43c7c69ff75ffa3008f4a7d95a02125 100644 (file)
@@ -38,7 +38,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
      could include embedded null characters.
 
    . It signals an error if the length of the formatted string is about to
-     overflow MOST_POSITIVE_FIXNUM, to avoid producing strings longer than what
+     overflow ptrdiff_t or size_t, to avoid producing strings longer than what
      Emacs can handle.
 
    OTOH, this function supports only a small subset of the standard C formatted