HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e864970
)
(insert_from_buffer_1): Don't use min.
author
Richard M. Stallman
<rms@gnu.org>
Tue, 25 Oct 1994 07:53:05 +0000
(07:53 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 25 Oct 1994 07:53:05 +0000
(07:53 +0000)
src/insdel.c
patch
|
blob
|
blame
|
history
diff --git
a/src/insdel.c
b/src/insdel.c
index
7b1e6b1
..
47e7529
100644
(file)
--- a/
src/insdel.c
+++ b/
src/insdel.c
@@
-485,7
+485,9
@@
insert_from_buffer_1 (buf, pos, length, inherit)
if (pos < BUF_GPT (buf))
{
- chunk = min (length, BUF_GPT (buf) - pos);
+ chunk = BUF_GPT (buf) - pos;
+ if (chunk > length)
+ chunk = length;
bcopy (BUF_CHAR_ADDRESS (buf, pos), GPT_ADDR, chunk);
}
else