From ea46f5e0e5fbd21ac76876b57f5631c8b4263623 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 25 Dec 2006 09:43:46 +0000 Subject: Replace strdup() with BUF_strdup(). --- engines/ccgost/gost_ctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/ccgost/gost_ctl.c') diff --git a/engines/ccgost/gost_ctl.c b/engines/ccgost/gost_ctl.c index e31e1f9776..d94089b9cb 100644 --- a/engines/ccgost/gost_ctl.c +++ b/engines/ccgost/gost_ctl.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "gost_lcl.h" static char *gost_params[GOST_PARAM_MAX+1]={NULL}; @@ -54,7 +55,7 @@ const char *get_gost_engine_param(int param) tmp = getenv(gost_envnames[param]); if (tmp) { - gost_params[param] = strdup(tmp); + gost_params[param] = BUF_strdup(tmp); return gost_params[param]; } return NULL; @@ -68,7 +69,7 @@ int gost_set_default_param(int param, const char *value) /* if there is value in the environment, use it, else -passed string * */ if (!tmp) tmp=value; if (gost_params[param]) free(gost_params[param]); - gost_params[param] = strdup(tmp); + gost_params[param] = BUF_strdup(tmp); return 1; } -- cgit v1.2.3