projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Symbian compilation fixes.
[silc.git]
/
lib
/
silcutil
/
silcbuffer.h
diff --git
a/lib/silcutil/silcbuffer.h
b/lib/silcutil/silcbuffer.h
index 90bc3be574611fa2896ca3d2ac751455d57c6d01..673c4a7ff0608da0bd421c4f42be134060c5c313 100644
(file)
--- a/
lib/silcutil/silcbuffer.h
+++ b/
lib/silcutil/silcbuffer.h
@@
-1051,7
+1051,7
@@
SilcBuffer silc_buffer_srealloc(SilcStack stack,
if (!h) {
/* Do slow and stack wasting realloc. The old sb->head is lost and
is freed eventually. */
if (!h) {
/* Do slow and stack wasting realloc. The old sb->head is lost and
is freed eventually. */
- h = silc_smalloc_ua(stack, newsize);
+ h =
(unsigned char *)
silc_smalloc_ua(stack, newsize);
if (silc_unlikely(!h))
return NULL;
memcpy(h, sb->head, silc_buffer_truelen(sb));
if (silc_unlikely(!h))
return NULL;
memcpy(h, sb->head, silc_buffer_truelen(sb));