Prevent buffer overflow on Unix if environment variable is too big
Prevent buffer overflow on Unix if environment variable is too big

Otherwise it would copy into unallocated memory here, which could override important things.

Ultimaker/CuraEngine,Ultimaker/CuraEngine