Make macro expanded string immutable

The string is shared between different macro expand.
It is wrong to modify the string in place if the string
is used in a macro. Avoid overwriting the string in that

Reported-by: Rasmus Villemoes <>
Tested-by: Luc Van Oostenryck <>
Signed-off-by: Christopher Li <>
3 files changed