]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/dn.c
ITS#5959, cleanup
[openldap] / servers / slapd / dn.c
index f2402cbc9908c00cd7525dde45d7f0713a02ebbd..c3669d64067967f7c2bcad40ff39c223bac0760d 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2007 The OpenLDAP Foundation.
+ * Copyright 1998-2009 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -1077,7 +1077,7 @@ dn_rdnlen(
 
        p = ber_bvchr( dn_in, ',' );
 
-       return p ? p - dn_in->bv_val : dn_in->bv_len;
+       return p ? (ber_len_t) (p - dn_in->bv_val) : dn_in->bv_len;
 }