(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.
Merge pull request #74 from Gu1/master

(platform/Posix) Fix bug: infinite loop on 32 bits posix systems