Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
f48cf5b3
Commit
f48cf5b3
authored
Jun 25, 2019
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w32_stack: treat a len as an size_t
parent
6b224054
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/win32/w32_stack.c
+2
-2
src/win32/w32_stack.h
+1
-1
No files found.
src/win32/w32_stack.c
View file @
f48cf5b3
...
...
@@ -91,10 +91,10 @@ int git_win32__stack_format(
}
s
;
IMAGEHLP_LINE64
line
;
in
t
buf_used
=
0
;
size_
t
buf_used
=
0
;
unsigned
int
k
;
char
detail
[
MY_MAX_FILENAME
*
2
];
/* filename plus space for function name and formatting */
in
t
detail_len
;
size_
t
detail_len
;
if
(
!
g_win32_stack_initialized
)
{
git_error_set
(
GIT_ERROR_INVALID
,
"git_win32_stack not initialized."
);
...
...
src/win32/w32_stack.h
View file @
f48cf5b3
...
...
@@ -38,7 +38,7 @@ typedef void (*git_win32__stack__aux_cb_alloc)(unsigned int *aux_id);
* @param aux_msg A buffer where a formatted message should be written.
* @param aux_msg_len The size of the buffer.
*/
typedef
void
(
*
git_win32__stack__aux_cb_lookup
)(
unsigned
int
aux_id
,
char
*
aux_msg
,
unsigned
in
t
aux_msg_len
);
typedef
void
(
*
git_win32__stack__aux_cb_lookup
)(
unsigned
int
aux_id
,
char
*
aux_msg
,
size_
t
aux_msg_len
);
/**
* Register an "aux" data provider to augment our C stacktrace data.
...
...
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