From 9d6b4ab6fee3d65f3a11a5f19c410e5abe4ba322 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 18 May 2010 17:29:24 +0200 Subject: added building of the test library --- src/library/loader.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/library/loader.c b/src/library/loader.c index 77abf18..ad83bda 100644 --- a/src/library/loader.c +++ b/src/library/loader.c @@ -48,7 +48,7 @@ wolf_library_p wolf_library_load( const char *name, wolf_error_t *error ) { #if defined HAVE_DLFCN /* TODO: Apache has a flags variable and a direct parameter version, find out why.. - * also make up our bind how many flags we should "leak" to the application layer + * also make up our mind how many flags we should "leak" to the application layer */ flags = RTLD_NOW | RTLD_LOCAL; @@ -75,6 +75,7 @@ wolf_error_t wolf_library_unload( wolf_library_p l ) { res = dlclose( l->handle ); if( res != 0 ) { + strncpy( l->errbuf, dlerror( ), INTERNAL_ERRBUF_SIZE ); return WOLF_ERR_INTERNAL; } @@ -84,7 +85,7 @@ wolf_error_t wolf_library_unload( wolf_library_p l ) { return WOLF_OK; } -char *wolf_libary_errmsg( const wolf_error_t error, const wolf_library_p l, char *buf, size_t buflen ) { +char *wolf_library_errmsg( const wolf_error_t error, const wolf_library_p l, char *buf, size_t buflen ) { (void)wolf_error_msg( error, buf, buflen ); strncat( buf, " - ", buflen - strlen( buf ) ); if( error == WOLF_ERR_INTERNAL ) { -- cgit v1.2.3-54-g00ecf