summaryrefslogtreecommitdiff
path: root/plugins/ao/eng_qsf
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-07 11:22:41 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-07 11:22:41 +0200
commitda5345e0386a9f6fa182545a4334b03cf8ccc33c (patch)
tree57d9a2cc78ea6eb24f00f4c179bc70890aec9c6f /plugins/ao/eng_qsf
parente773e777343ce971d80c55522b293d83cddae478 (diff)
ao: fixed reading aux psf libs from archives
Diffstat (limited to 'plugins/ao/eng_qsf')
-rw-r--r--plugins/ao/eng_qsf/eng_qsf.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/plugins/ao/eng_qsf/eng_qsf.c b/plugins/ao/eng_qsf/eng_qsf.c
index 130b5d2c..57d18147 100644
--- a/plugins/ao/eng_qsf/eng_qsf.c
+++ b/plugins/ao/eng_qsf/eng_qsf.c
@@ -207,19 +207,7 @@ void *qsf_start(const char *path, uint8 *buffer, uint32 length)
uint64 tmp_length;
char libpath[PATH_MAX];
- const char *e = path + strlen(path);
- while (e > path && *e != '/') {
- e--;
- }
- if (*e == '/') {
- e++;
- memcpy (libpath, path, e-path);
- libpath[e-path] = 0;
- strcat (libpath, s->c->lib);
- }
- else {
- strcpy (libpath, s->c->lib);
- }
+ ao_getlibpath (path, s->c->lib, libpath, sizeof (libpath));
#if DEBUG_LOADER
printf("Loading library: %s\n", libpath);