aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2010-11-11 16:11:17 -0500
committerStefan Monnier2010-11-11 16:11:17 -0500
commit1a4236eaba106cda719f9de42cb7f72ad20f5d45 (patch)
treecb6c3a4d2b8c134e64562b93fb5f8df61d6b42f7 /src
parentcbf83ce9f9163ef95b62c778f4d3efa3cc465cfe (diff)
downloademacs-1a4236eaba106cda719f9de42cb7f72ad20f5d45.tar.gz
emacs-1a4236eaba106cda719f9de42cb7f72ad20f5d45.zip
* src/cmds.c (Fself_insert_command): Don't call XFASTINT without checking
it's not negative.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/cmds.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9804d57a9cf..902570f804f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
4 it's not negative.
5
12010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 62010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 7
3 * font.c (font_filter_properties): Add const to array elements of 8 * 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
276 (Lisp_Object n) 276 (Lisp_Object n)
277{ 277{
278 int remove_boundary = 1; 278 int remove_boundary = 1;
279 CHECK_NUMBER (n); 279 CHECK_NATNUM (n);
280 280
281 if (!EQ (Vthis_command, current_kboard->Vlast_command)) 281 if (!EQ (Vthis_command, current_kboard->Vlast_command))
282 nonundocount = 0; 282 nonundocount = 0;