Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
libvlcpp
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
VideoLAN
libvlcpp
Compare revisions
4db4f8406f5a7d5f3d9d08f4a0b13affb0b2edd0 to eb8dca85f888053eb7b25a2cf4db74bbae5180ca
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
videolan/libvlcpp
Select target project
No results found
eb8dca85f888053eb7b25a2cf4db74bbae5180ca
Select Git revision
Branches
autotools
cppcx
master
Tags
0.1.0
0.1.0-rc1
0.1.0-rc2
Swap
Target
videolan/libvlcpp
Select target project
videolan/libvlcpp
robUx4/libvlcpp
stolyarchuk/libvlcpp
hacker1024/libvlcpp
mfkl/libvlcpp
The-personified-devil/libvlcpp
chouquette/libvlcpp
aillean/libvlcpp
adtadas19/libvlcpp
aad9805066254/libvlcpp
asenat/libvlcpp
rovenmaburak/libvlcpp
mstorsjo/libvlcpp
ranjuranjith/libvlcpp
tguillem/libvlcpp
akbaralisalar/libvlcpp
king7532/libvlcpp
Skantes/libvlcpp
f45431082/libvlcpp
alexandre-janniaux/libvlcpp
deyayush6/libvlcpp
21 results
4db4f8406f5a7d5f3d9d08f4a0b13affb0b2edd0
Select Git revision
Branches
autotools
cppcx
master
Tags
0.1.0
0.1.0-rc1
0.1.0-rc2
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Instance: win32: Use the secure flavor of vsnprintf
· a027be08
Hugo Beauzée-Luyssen
authored
7 years ago
a027be08
Instance: win32: Don't ignore potential sprintf_s errors
· eb8dca85
Hugo Beauzée-Luyssen
authored
7 years ago
eb8dca85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlcpp/Instance.hpp
+4
-2
4 additions, 2 deletions
vlcpp/Instance.hpp
with
4 additions
and
2 deletions
vlcpp/Instance.hpp
View file @
eb8dca85
...
...
@@ -254,10 +254,12 @@ public:
#else
//MSVC treats passing nullptr as 1st vsnprintf(_s) as an error
char
psz_msg
[
512
];
if
(
vsnprintf
(
psz_msg
,
sizeof
(
psz_msg
)
-
1
,
format
,
va
)
<
0
)
if
(
_
vsnprintf
_s
(
psz_msg
,
_TRUNCATE
,
format
,
va
)
<
0
)
return
;
char
psz_ctx
[
1024
];
sprintf_s
(
psz_ctx
,
"[%s] (%s:%d) %s"
,
psz_module
,
psz_file
,
i_line
,
psz_msg
);
if
(
sprintf_s
(
psz_ctx
,
"[%s] (%s:%d) %s"
,
psz_module
,
psz_file
,
i_line
,
psz_msg
)
<
0
)
return
;
#endif
logCb
(
level
,
ctx
,
std
::
string
{
psz_ctx
}
);
};
...
...
This diff is collapsed.
Click to expand it.