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
81aeb17c
Commit
81aeb17c
authored
17 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
If USE_SNPRINTF is defined, then don't redefined snprintf to use safe_snprintf.
parent
4bf0b53c
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/xpdev/genwrap.h
+7
-2
7 additions, 2 deletions
src/xpdev/genwrap.h
with
7 additions
and
2 deletions
src/xpdev/genwrap.h
+
7
−
2
View file @
81aeb17c
...
...
@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 200
7
Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 200
8
Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
...
...
@@ -160,9 +160,14 @@ extern "C" {
/* String Functionss */
/*********************/
#define snprintf safe_snprintf
#ifndef USE_SNPRINTF
#define snprintf safe_snprintf
#endif
#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__DMC__)
#if !defined(snprintf)
#define snprintf _snprintf
#endif
#define vsnprintf _vsnprintf
#endif
...
...
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