projects
/
sxemacs
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More eliminate silly warnings
[sxemacs]
/
src
/
search.c
diff --git
a/src/search.c
b/src/search.c
index
1a5f0a1
..
ff9f338
100644
(file)
--- a/
src/search.c
+++ b/
src/search.c
@@
-766,8
+766,11
@@
fast_string_match(Lisp_Object regexp, const Bufbyte * nonreloc,
return with failure...
*/
return -1;
return with failure...
*/
return -1;
- newnonreloc = alloca(length);
- memcpy((void*)newnonreloc, (void*)XSTRING_DATA(reloc), length);
+ Bufbyte *copy = alloca(length);
+ memcpy((void*)copy,
+ (const void*)XSTRING_DATA(reloc),
+ length);
+ newnonreloc = copy;
}
}
}
}