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:
a4cf38e
)
* fns.c (Ffillarray): Use same idx as rest of code here.
author
Paul Eggert
<eggert@cs.ucla.edu>
Sat, 18 Jun 2011 16:07:41 +0000
(09:07 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sat, 18 Jun 2011 16:07:41 +0000
(09:07 -0700)
src/fns.c
patch
|
blob
|
blame
|
history
diff --git
a/src/fns.c
b/src/fns.c
index
702ecbd
..
32d96fb
100644
(file)
--- a/
src/fns.c
+++ b/
src/fns.c
@@
-2169,13
+2169,12
@@
ARRAY is a vector, string, char-table, or bool-vector. */)
unsigned char str[MAX_MULTIBYTE_LENGTH];
int len = CHAR_STRING (charval, str);
EMACS_INT size_byte = SBYTES (array);
- EMACS_INT i;
if (INT_MULTIPLY_OVERFLOW (SCHARS (array), len)
|| SCHARS (array) * len != size_byte)
error ("Attempt to change byte length of a string");
- for (i
= 0; i < size_byte; i
++)
- *p++ = str[i % len];
+ for (i
dx = 0; idx < size_byte; idx
++)
+ *p++ = str[i
dx
% len];
}
else
for (idx = 0; idx < size; idx++)