diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/win32/w32_stack.c | 8 | ||||
-rw-r--r-- | src/win32/w32_stack.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/win32/w32_stack.c b/src/win32/w32_stack.c index 6eb71962a..78c78dbbd 100644 --- a/src/win32/w32_stack.c +++ b/src/win32/w32_stack.c @@ -76,7 +76,7 @@ int git_win32__stack_compare( } int git_win32__stack_format( - char *pbuf, int buf_len, + char *pbuf, size_t buf_len, const git_win32__stack__raw_data *pdata, const char *prefix, const char *suffix) { @@ -91,10 +91,10 @@ int git_win32__stack_format( } s; IMAGEHLP_LINE64 line; - int 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 */ - int detail_len; + size_t detail_len; if (!g_win32_stack_initialized) { git_error_set(GIT_ERROR_INVALID, "git_win32_stack not initialized."); @@ -171,7 +171,7 @@ int git_win32__stack_format( } int git_win32__stack( - char * pbuf, int buf_len, + char * pbuf, size_t buf_len, int skip, const char *prefix, const char *suffix) { diff --git a/src/win32/w32_stack.h b/src/win32/w32_stack.h index 5f0009e0b..c2565c228 100644 --- a/src/win32/w32_stack.h +++ b/src/win32/w32_stack.h @@ -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 int 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. @@ -116,7 +116,7 @@ int git_win32__stack_compare( * @param suffix String written after each frame; defaults to "\n". */ int git_win32__stack_format( - char *pbuf, int buf_len, + char *pbuf, size_t buf_len, const git_win32__stack__raw_data *pdata, const char *prefix, const char *suffix); @@ -132,7 +132,7 @@ int git_win32__stack_format( * @param suffix String written after each frame; defaults to "\n". */ int git_win32__stack( - char * pbuf, int buf_len, + char * pbuf, size_t buf_len, int skip, const char *prefix, const char *suffix); |