Diff for /libelwix/src/mem.c between versions 1.5.2.2 and 1.7.10.1

version 1.5.2.2, 2015/07/01 21:47:19 version 1.7.10.1, 2017/11/28 11:45:05
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004 - 2015Copyright 2004 - 2017
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 291  mpool_realloc(mpool_t * __restrict mp, void * __restri Line 291  mpool_realloc(mpool_t * __restrict mp, void * __restri
                 if (!p)                  if (!p)
                         return NULL;                          return NULL;
   
                memcpy(p, data, osize);                memcpy(p, data, MIN(osize, newsize));
                 mpool_free(mp, data, 0);                  mpool_free(mp, data, 0);
                   data = p;
         } else {          } else {
                 p = data;                  p = data;
   

Removed from v.1.5.2.2  
changed lines
  Added in v.1.7.10.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>