Diff for /libelwix/src/mem.c between versions 1.6 and 1.6.2.2

version 1.6, 2015/07/01 21:48:39 version 1.6.2.2, 2016/05/14 13:12:43
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 - 2016
         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);
         } else {          } else {
                 p = data;                  p = data;

Removed from v.1.6  
changed lines
  Added in v.1.6.2.2


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