X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Flber_pvt.h;h=3767fa22dc9b4546fa1423519ce0990f5e4cbe3d;hb=bf816cb7c011b37325b528a68de3b49b22690541;hp=4ec528eb5ff61427cf60aada0446d135fa45b825;hpb=83734af7cb3d6293fe6d8303a0bf4d484fe7b41e;p=openldap diff --git a/include/lber_pvt.h b/include/lber_pvt.h index 4ec528eb5f..3767fa22dc 100644 --- a/include/lber_pvt.h +++ b/include/lber_pvt.h @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2015 The OpenLDAP Foundation. + * Copyright 1998-2018 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -201,6 +201,10 @@ ber_bvarray_dup_x LDAP_P(( BerVarray *dst, BerVarray src, void *ctx )); (dst)->bv_val = (bv)->bv_val; \ } while (0) +#ifndef STRLENOF +#define STRLENOF(s) (sizeof(s)-1) +#endif + #define BER_BVC(s) { STRLENOF(s), (char *)(s) } #define BER_BVNULL { 0L, NULL } #define BER_BVZERO(bv) \