]> code.citadel.org Git - citadel.git/blobdiff - citadel/dynloader.c
* The size constant "256" which shows up everywhere as a buffer size has now
[citadel.git] / citadel / dynloader.c
index 585b4ff3d52b78f6b24e48c93ce4026cf82263d8..52ce3e46f337980d0eab66115671b86cca822d52 100644 (file)
@@ -82,7 +82,7 @@ int DLoader_Exec_Cmd(char *cmdbuf)
 void DLoader_Init(char *pathname)
 {
        void *fcn_handle;
-       char dl_error[256];
+       char dl_error[SIZ];
        DIR *dir;
        int i;
        struct dirent *dptr;
@@ -102,6 +102,7 @@ void DLoader_Init(char *pathname)
                        continue;
 
                snprintf(pathbuf, PATH_MAX, "%s/%s", pathname, dptr->d_name);
+               lprintf(7, "Initializing %s...\n", pathbuf);
 
 #ifdef RTLD_LAZY
                if (!(fcn_handle = dlopen(pathbuf, RTLD_LAZY)))
@@ -239,7 +240,7 @@ void CtdlRegisterServiceHook(int tcp_port,
                        void (*h_command_function) (void) )
 {
        struct ServiceFunctionHook *newfcn;
-       char message[256];
+       char message[SIZ];
 
        newfcn = (struct ServiceFunctionHook *)
            mallok(sizeof(struct ServiceFunctionHook));