Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
9a16d015
Commit
9a16d015
authored
Jan 21, 2008
by
Brad King
Browse files
COMP: snprintf is not portable.
parent
f41b1e8e
Changes
1
Show whitespace changes
Inline
Side-by-side
Source/cmFindPackageCommand.cxx
View file @
9a16d015
...
...
@@ -466,17 +466,17 @@ bool cmFindPackageCommand::FindModule(bool& found)
{
case
3
:
{
s
n
printf
(
buf
,
64
,
"%u"
,
this
->
VersionPatch
);
sprintf
(
buf
,
"%u"
,
this
->
VersionPatch
);
this
->
Makefile
->
AddDefinition
((
ver
+
"_PATCH"
).
c_str
(),
buf
);
}
// no break
case
2
:
{
s
n
printf
(
buf
,
64
,
"%u"
,
this
->
VersionMinor
);
sprintf
(
buf
,
"%u"
,
this
->
VersionMinor
);
this
->
Makefile
->
AddDefinition
((
ver
+
"_MINOR"
).
c_str
(),
buf
);
}
// no break
case
1
:
{
s
n
printf
(
buf
,
64
,
"%u"
,
this
->
VersionMajor
);
sprintf
(
buf
,
"%u"
,
this
->
VersionMajor
);
this
->
Makefile
->
AddDefinition
((
ver
+
"_MAJOR"
).
c_str
(),
buf
);
}
// no break
default:
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment