From 0f3e5a391478b822042226e81ac83edf67123c17 Mon Sep 17 00:00:00 2001 From: Sergey Kartashoff Date: Mon, 25 Jun 2001 11:36:42 +0000 Subject: [PATCH] Security fix in Udm_Set_Agent_Param function. --- ext/mnogosearch/php_mnogo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mnogosearch/php_mnogo.c b/ext/mnogosearch/php_mnogo.c index 1058a93938..56f0f4faf0 100644 --- a/ext/mnogosearch/php_mnogo.c +++ b/ext/mnogosearch/php_mnogo.c @@ -607,7 +607,7 @@ DLEXPORT PHP_FUNCTION(udm_set_agent_param) #if UDM_VERSION_ID > 30112 case UDM_PARAM_VARDIR: - sprintf(Agent->Conf->vardir,"%s%s",val,UDMSLASHSTR); + udm_snprintf(Agent->Conf->vardir,sizeof(Agent->Conf->vardir)-1,"%s%s",val,UDMSLASHSTR); break; -- 2.50.1