equal
deleted
inserted
replaced
551 |
551 |
552 static MethodMatcher::Mode check_mode(char name[], const char*& error_msg) { |
552 static MethodMatcher::Mode check_mode(char name[], const char*& error_msg) { |
553 int match = MethodMatcher::Exact; |
553 int match = MethodMatcher::Exact; |
554 while (name[0] == '*') { |
554 while (name[0] == '*') { |
555 match |= MethodMatcher::Suffix; |
555 match |= MethodMatcher::Suffix; |
556 strcpy(name, name + 1); |
556 // Copy remaining string plus NUL to the beginning |
|
557 memmove(name, name + 1, strlen(name + 1) + 1); |
557 } |
558 } |
558 |
559 |
559 if (strcmp(name, "*") == 0) return MethodMatcher::Any; |
560 if (strcmp(name, "*") == 0) return MethodMatcher::Any; |
560 |
561 |
561 size_t len = strlen(name); |
562 size_t len = strlen(name); |