aboutsummaryrefslogtreecommitdiffstats
path: root/epan/guid-utils.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2015-06-27 06:10:20 +0100
committerAnders Broman <a.broman58@gmail.com>2015-06-27 14:32:35 +0000
commitb24a45c354f95e27e30dbcc0e9e3ef3af4676e9c (patch)
tree01895e45535de45abc417760316c76c99bae854f /epan/guid-utils.c
parent26a1ccbc05f0dfd425393d1455cfc0de0f253f3e (diff)
Avoid some Visual Studio Code Anaylzer warnings
Change-Id: I320386b02bea09658636a9281ee3cbba34a5e4cd Reviewed-on: https://code.wireshark.org/review/9188 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/guid-utils.c')
-rw-r--r--epan/guid-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/guid-utils.c b/epan/guid-utils.c
index e8f786222c..c0a915b31f 100644
--- a/epan/guid-utils.c
+++ b/epan/guid-utils.c
@@ -50,8 +50,8 @@ ResolveWin32UUID(e_guid_t if_id, char *uuid_name, int uuid_name_max_len)
DWORD uuid_max_size = MAX_PATH;
TCHAR *reg_uuid_str;
- reg_uuid_name=wmem_alloc(wmem_packet_scope(), MAX_PATH*sizeof(TCHAR));
- reg_uuid_str=wmem_alloc(wmem_packet_scope(), MAX_PATH*sizeof(TCHAR));
+ reg_uuid_name=wmem_alloc(wmem_packet_scope(), (MAX_PATH*sizeof(TCHAR))+1);
+ reg_uuid_str=wmem_alloc(wmem_packet_scope(), (MAX_PATH*sizeof(TCHAR))+1);
if(uuid_name_max_len < 2){
return 0;