cfengine/core — pull request #1724 by McAtte (2014-05-22 21:31:20+00:00)
Title: pass the exact length of release_id to xstrndup 

This passes the correct length into xstrndup to avoid memory corruption on aix. This was tested to ensure cf-promises did not segfault - see https://dev.cfengine.com/issues/4776 - this platform is known to have issues with strndup if the length is incorrect and it seems that if the length passed is greater than the actual length of the string, this causes problems as the destination buffer may or may not have been zeroed.