Commit 6b60c8ef325f7b775c60b4a9471978008ba4b21b

tokyovania 2022-08-10T17:34:26

fix typo

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/librtbuf/rtbuf_lib.c b/librtbuf/rtbuf_lib.c
index dd46644..76671e2 100644
--- a/librtbuf/rtbuf_lib.c
+++ b/librtbuf/rtbuf_lib.c
@@ -195,7 +195,7 @@ s_rtbuf_lib * rtbuf_lib_load (const char *name)
       rtbuf_lib_delete(lib);
       return 0;
     }
-  unload.ptr = dlsym(lib->lib, "rtbuf_lib_init");
+  unload.ptr = dlsym(lib->lib, "rtbuf_lib_unload");
   lib->unload = unload.fun;
   proc = dlsym(lib->lib, "rtbuf_lib_proc");
   lib->proc = rtbuf_proc_new();