letoram/arcan — pull request #74 by Gu1 (2014-05-28 01:04:30+00:00)
Title: (platform/Posix) Fix bug: infinite loop on 32 bits posix systems

We were wrongly using sizeof() to get the size of a (char *).
This would return the size of the pointer instead of the size of the
string (8 on x86_64, 4 on x86).

The obtained size was then used to allocate a second buffer. That buffer
ended up being too small on x86 platforms, causing the following snprintf()
call to truncate its result and shm_open() to fail, which would cause an
infinite loop.