projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put structure into anno(1) and its man page.
[mmh]
/
sbr
/
print_sw.c
diff --git
a/sbr/print_sw.c
b/sbr/print_sw.c
index
6f0c981
..
3a70c54
100644
(file)
--- a/
sbr/print_sw.c
+++ b/
sbr/print_sw.c
@@
-20,7
+20,8
@@
print_sw(char *substr, struct swit *swp, char *prefix, FILE *fp)
len = strlen(substr);
for (; swp->sw; swp++) {
/* null matches all strings */
len = strlen(substr);
for (; swp->sw; swp++) {
/* null matches all strings */
- if (!*substr || (ssequal(substr, swp->sw) && len >= swp->minchars)) {
+ if (!*substr || (strncmp(swp->sw, substr, len)==0 &&
+ len >= swp->minchars)) {
optno = 0;
/* next switch */
if ((sp = (&swp[1])->sw)) {
optno = 0;
/* next switch */
if ((sp = (&swp[1])->sw)) {