use secure _dupenv_s function instead of insecure getenv
use secure _dupenv_s function instead of insecure getenv

Change-Id: I8efe755b7e5e3caf3a6185526e8236082d67977e

opcm/pcm,opcm/pcm,opcm/pcm,opcm/pcm