From: Stefan Monnier Date: Thu, 11 Nov 2010 21:11:17 +0000 (-0500) Subject: * src/cmds.c (Fself_insert_command): Don't call XFASTINT without checking X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~45^2~284 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1a4236eaba106cda719f9de42cb7f72ad20f5d45;p=emacs.git * src/cmds.c (Fself_insert_command): Don't call XFASTINT without checking it's not negative. --- diff --git a/src/ChangeLog b/src/ChangeLog index 9804d57a9cf..902570f804f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-11-11 Stefan Monnier + + * cmds.c (Fself_insert_command): Don't call XFASTINT without checking + it's not negative. + 2010-11-10 YAMAMOTO Mitsuharu * font.c (font_filter_properties): Add const to array elements of diff --git a/src/cmds.c b/src/cmds.c index 2d0814abd98..b2f454199f5 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -276,7 +276,7 @@ After insertion, the value of `auto-fill-function' is called if the (Lisp_Object n) { int remove_boundary = 1; - CHECK_NUMBER (n); + CHECK_NATNUM (n); if (!EQ (Vthis_command, current_kboard->Vlast_command)) nonundocount = 0;