diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2010-05-18 17:29:24 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2010-05-18 17:29:24 +0200 |
commit | 9d6b4ab6fee3d65f3a11a5f19c410e5abe4ba322 (patch) | |
tree | 77c5af1b4bf80c0eea8a23844cfb1872d211aba5 /src | |
parent | 78420e31a260353b1c34ca019c0c8cabd292cca6 (diff) | |
download | wolfbones-9d6b4ab6fee3d65f3a11a5f19c410e5abe4ba322.tar.gz wolfbones-9d6b4ab6fee3d65f3a11a5f19c410e5abe4ba322.tar.bz2 |
added building of the test library
Diffstat (limited to 'src')
-rw-r--r-- | src/library/loader.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 ) { |