* Add a slash to any name not ending in /. There must * be room for the / */
| 678 | * be room for the / |
| 679 | */ |
| 680 | void |
| 681 | append_slash(char *name) |
| 682 | { |
| 683 | char *ptr; |
| 684 | |
| 685 | if (!*name) |
| 686 | return; |
| 687 | ptr = name + (strlen(name) - 1); |
| 688 | if (*ptr != '/') { |
| 689 | *++ptr = '/'; |
| 690 | *++ptr = '\0'; |
| 691 | } |
| 692 | return; |
| 693 | } |
| 694 | |
| 695 | boolean |
| 696 | check_user_string(const char *optstr) |
nothing calls this directly
no outgoing calls
no test coverage detected