FIX: 0 termination missing
authorVolker Birk <vb@pep-project.org>
Thu, 01 Dec 2016 16:44:03 +0100
changeset 223490e6399476b
parent 222 789fece963be
child 224 b0290a75f7a5
FIX: 0 termination missing
pEp_utility.cpp
     1.1 --- a/pEp_utility.cpp	Tue Nov 29 16:31:49 2016 +0100
     1.2 +++ b/pEp_utility.cpp	Thu Dec 01 16:44:03 2016 +0100
     1.3 @@ -400,7 +400,7 @@
     1.4  
     1.5                  char *buffer;
     1.6                  if (size) {
     1.7 -                    buffer = (char *) malloc(size);
     1.8 +                    buffer = (char *) calloc(1, size);
     1.9                      if (buffer == NULL)
    1.10                          throw bad_alloc();
    1.11