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
cc4323a9
Commit
cc4323a9
authored
15 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug in last commit - must call WSAStartup on Windows for gethostname() to
work in iniFileName().
parent
25d3b1db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/sbbs_ini.c
+9
-0
9 additions, 0 deletions
src/sbbs3/sbbs_ini.c
with
9 additions
and
0 deletions
src/sbbs3/sbbs_ini.c
+
9
−
0
View file @
cc4323a9
...
...
@@ -77,12 +77,21 @@ void sbbs_get_ini_fname(char* ini_file, char* ctrl_dir, char* pHostName)
{
/* pHostName is no longer used since iniFileName calls gethostname() itself */
#if defined(_WINSOCKAPI_)
WSADATA
WSAData
;
WSAStartup
(
MAKEWORD
(
1
,
1
),
&
WSAData
);
/* req'd for gethostname */
#endif
#if defined(__unix__) && defined(PREFIX)
sprintf
(
ini_file
,
PREFIX
"/etc/sbbs.ini"
);
if
(
fexistcase
(
ini_file
))
return
;
#endif
iniFileName
(
ini_file
,
MAX_PATH
,
ctrl_dir
,
"sbbs.ini"
);
#if defined(_WINSOCKAPI_)
WSACleanup
();
#endif
}
static
void
sbbs_fix_js_settings
(
js_startup_t
*
js
)
...
...
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