projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
409cdb8
)
GSocket.receive_message: fix bogus allocation math
author
Ryan Lortie
<desrt@desrt.ca>
Thu, 12 Nov 2009 03:20:11 +0000
(22:20 -0500)
committer
Ryan Lortie
<desrt@desrt.ca>
Thu, 12 Nov 2009 03:22:41 +0000
(22:22 -0500)
gio/gsocket.c
patch
|
blob
|
history
diff --git
a/gio/gsocket.c
b/gio/gsocket.c
index
8e9e07e
..
504cb83
100644
(file)
--- a/
gio/gsocket.c
+++ b/
gio/gsocket.c
@@
-3038,9
+3038,8
@@
g_socket_receive_message (GSocket *socket,
if (index == allocated)
{
/* estimated 99% case: exactly 1 control message */
- allocated = M
IN
(allocated * 2, 1);
+ allocated = M
AX
(allocated * 2, 1);
my_messages = g_new (GSocketControlMessage *, (allocated + 1));
- allocated = 1;
}
my_messages[index++] = message;