diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-23 11:59:02 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-23 11:59:02 +0000 |
commit | bf11de80e432c1016375f932f5d1e879d04f8369 (patch) | |
tree | 2a2417af0d551a972c01789b49453e4aa4568001 /src/transport/test_plugin_transport.c | |
parent | 092f6ee135d29f88264d9553d26829c2772f7e16 (diff) | |
download | gnunet-bf11de80e432c1016375f932f5d1e879d04f8369.tar.gz gnunet-bf11de80e432c1016375f932f5d1e879d04f8369.zip |
fix
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r-- | src/transport/test_plugin_transport.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index bc7df9880..c8aa43f44 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c | |||
@@ -450,7 +450,8 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
450 | /* load plugins... */ | 450 | /* load plugins... */ |
451 | setup_plugin_environment (); | 451 | setup_plugin_environment (); |
452 | 452 | ||
453 | plugin = strrchr(argv[0],'_'); | 453 | GNUNET_assert (strlen (argv[0]) > strlen ("test_plugin_")); |
454 | plugin = strstr(argv[0],"test_plugin_"); | ||
454 | sep = strrchr(argv[0],'.'); | 455 | sep = strrchr(argv[0],'.'); |
455 | if (NULL == plugin) | 456 | if (NULL == plugin) |
456 | { | 457 | { |
@@ -458,7 +459,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
458 | end_badly_now (); | 459 | end_badly_now (); |
459 | return; | 460 | return; |
460 | } | 461 | } |
461 | plugin++; | 462 | plugin += strlen ("test_plugin_"); |
462 | if (NULL != sep) | 463 | if (NULL != sep) |
463 | sep[0] = '\0'; | 464 | sep[0] = '\0'; |
464 | 465 | ||