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
dd5ff806
Commit
dd5ff806
authored
20 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Changed safe_snprintf() prototype to match snprintf() - missing const.
parent
2be9e4b4
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/xpdev/genwrap.c
+1
-1
1 addition, 1 deletion
src/xpdev/genwrap.c
src/xpdev/genwrap.h
+1
-1
1 addition, 1 deletion
src/xpdev/genwrap.h
with
2 additions
and
2 deletions
src/xpdev/genwrap.c
+
1
−
1
View file @
dd5ff806
...
...
@@ -67,7 +67,7 @@
/****************************************************************************/
/* Used to replace snprintf() guarantees to terminate. */
/****************************************************************************/
int
DLLCALL
safe_snprintf
(
char
*
dst
,
size_t
size
,
char
*
fmt
,
...)
int
DLLCALL
safe_snprintf
(
char
*
dst
,
size_t
size
,
const
char
*
fmt
,
...)
{
va_list
argptr
;
int
numchars
;
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/genwrap.h
+
1
−
1
View file @
dd5ff806
...
...
@@ -272,7 +272,7 @@ extern "C" {
DLLEXPORT
int
DLLCALL
xp_random
(
int
);
DLLEXPORT
char
*
DLLCALL
os_version
(
char
*
str
);
DLLEXPORT
char
*
DLLCALL
lastchar
(
const
char
*
str
);
DLLEXPORT
int
DLLCALL
safe_snprintf
(
char
*
dst
,
size_t
size
,
char
*
fmt
,
...);
DLLEXPORT
int
DLLCALL
safe_snprintf
(
char
*
dst
,
size_t
size
,
const
char
*
fmt
,
...);
#if defined(_WIN32)
#define msclock() clock()
...
...
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