X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv_common.c;h=39a840873a4495250cdfc519a4d0d5b0712e8260;hp=3a09e7c0f8611f8666bfadf36f06c989a5e0a990;hb=5faeb758fb5c47e5e75a9dbbee60a541e7e2461f;hpb=0a2c77571770a4da28e069b3db0ac6949c91b467 diff --git a/recv_common.c b/recv_common.c index 3a09e7c0..39a84087 100644 --- a/recv_common.c +++ b/recv_common.c @@ -39,7 +39,7 @@ static void *parse_receiver_args(int receiver_num, char *options) // options? options : "(none)"); if (options) { // PARA_DEBUG_LOG("%s options: %s\n", name, options); - argc = split_args(options, &argv, ':'); + argc = split_args(options, &argv, ' '); // PARA_DEBUG_LOG("argc = %d, argv[0]: %s\n", fn->argc, fn->argv[0]); for (i = argc; i >= 0; i--) argv[i + 1] = argv[i]; @@ -74,13 +74,13 @@ void *check_receiver_arg(char *ra, int *receiver_num) if (strncmp(name, ra, len)) continue; c = ra[len]; - if (c && c != ':') + if (c && c != ' ') continue; if (c && !receivers[j].parse_config) return NULL; *receiver_num = j; return parse_receiver_args(j, c? ra + len + 1: NULL); } - PARA_ERROR_LOG("%s", "receiver not found:"); + PARA_ERROR_LOG("%s", "receiver not found\n"); return NULL; }