Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
2765757f
Commit
2765757f
authored
21 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
code_ok() returns int (bool), '.' allowed in internal codes.
parent
526ad78b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/scfg/scfg.c
+6
-6
6 additions, 6 deletions
src/sbbs3/scfg/scfg.c
src/sbbs3/scfg/scfg.h
+1
-2
1 addition, 2 deletions
src/sbbs3/scfg/scfg.h
with
7 additions
and
8 deletions
src/sbbs3/scfg/scfg.c
+
6
−
6
View file @
2765757f
...
...
@@ -1874,14 +1874,14 @@ user's account will expire.
sprintf
(
inar
,
"%.*s"
,
LEN_ARSTR
,
ar
);
}
char
code_ok
(
char
*
str
)
int
code_ok
(
char
*
str
)
{
if
(
!
strlen
(
str
))
return
(
0
);
if
(
strcspn
(
str
,
"
\\
/
.
|<>*?+[]:=
\"
;,"
)
!=
strlen
(
str
))
return
(
0
);
return
(
1
);
if
(
!
strlen
(
str
))
return
(
0
);
if
(
strcspn
(
str
,
"
\\
/|<>*?+[]:=
\"
;,"
)
!=
strlen
(
str
))
return
(
0
);
return
(
1
);
}
int
lprintf
(
char
*
fmt
,
...)
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/scfg/scfg.h
+
1
−
2
View file @
2765757f
...
...
@@ -106,9 +106,8 @@ void actsets_cfg(void);
void
chan_cfg
(
void
);
void
mdm_cfg
(
int
mdmnum
);
int
export_mdm
(
char
*
fname
);
char
code_ok
(
char
*
str
);
int
code_ok
(
char
*
str
);
int
bits
(
long
l
);
char
oneflag
(
long
l
);
void
getar
(
char
*
desc
,
char
*
ar
);
/* scfgnet.h */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment