diff extensions/app_diameap/diameap.y @ 511:17435072de36

Search extensions conf files in the main configuration folder also
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 20 Aug 2010 15:18:58 +0900
parents 0c6e50a5291d
children 64e55fc10ab3
line wrap: on
line diff
--- a/extensions/app_diameap/diameap.y	Fri Aug 20 14:28:45 2010 +0900
+++ b/extensions/app_diameap/diameap.y	Fri Aug 20 15:18:58 2010 +0900
@@ -133,9 +133,9 @@
 			fl = fopen(cfile, "r");
 			if ((fl == NULL) && (*cfile != '/')) {
 				char * tmp = cfile;
-				CHECK_MALLOC_DO( cfile = malloc( strlen(tmp) + strlen(DEFAULT_EXTENSIONS_PATH) + 2 ),
+				CHECK_MALLOC_DO( cfile = malloc( strlen(tmp) + strlen(DEFAULT_CONF_PATH) + 2 ),
 					{ yyerror (&yylloc, config, "Not enough memory"); YYERROR; } );
-				sprintf(cfile, DEFAULT_EXTENSIONS_PATH "/%s", tmp);
+				sprintf(cfile, DEFAULT_CONF_PATH "/%s", tmp);
 				free(tmp);
 				fl = fopen(cfile, "r");
 			}
"Welcome to our mercurial repository"