diff options
author | Martin Willi <martin@strongswan.org> | 2008-05-16 08:52:32 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-05-16 08:52:32 +0000 |
commit | 1ba62b5562f34149868af3c74a1ec14963b98e4f (patch) | |
tree | 018c61eba5bcacc35a386c138106af620fa71923 /src/libstrongswan/plugins/plugin_loader.c | |
parent | d8ff9eee6b011aa4622a170d11b94a4bd3c9c1f9 (diff) | |
download | strongswan-1ba62b5562f34149868af3c74a1ec14963b98e4f.tar.bz2 strongswan-1ba62b5562f34149868af3c74a1ec14963b98e4f.tar.xz |
loading default modules depending on configure options
Diffstat (limited to 'src/libstrongswan/plugins/plugin_loader.c')
-rw-r--r-- | src/libstrongswan/plugins/plugin_loader.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/plugin_loader.c b/src/libstrongswan/plugins/plugin_loader.c index 5734c9092..6c25cfbe2 100644 --- a/src/libstrongswan/plugins/plugin_loader.c +++ b/src/libstrongswan/plugins/plugin_loader.c @@ -100,7 +100,11 @@ static int load(private_plugin_loader_t *this, char *path, char *list) pos = strchr(list, ' '); if (pos) { - *pos = '\0'; + *pos++ = '\0'; + while (*pos == ' ') + { + pos++; + } } plugin = load_plugin(this, path, list); if (plugin) @@ -112,7 +116,7 @@ static int load(private_plugin_loader_t *this, char *path, char *list) { break; } - list = pos + 1; + list = pos; } return count; } |