[PATCH] relay: use sizeof(size_t), not sizeof(size_t *) in relay_create_buf()

2012-12-30 Thread Jesper Juhl
A number of size_t's is what we want to allocate memory for, not a number of size_t pointers (at least as far as I can tell). Now, depending on platform, sizeof(size_t *) may be >= sizeof(size_t) so things actually work, but that's not really a portable assumption, so let's use the value we

[PATCH] relay: use sizeof(size_t), not sizeof(size_t *) in relay_create_buf()

2012-12-30 Thread Jesper Juhl
A number of size_t's is what we want to allocate memory for, not a number of size_t pointers (at least as far as I can tell). Now, depending on platform, sizeof(size_t *) may be = sizeof(size_t) so things actually work, but that's not really a portable assumption, so let's use the value we