Diff for /embedaddon/sudo/compat/strlcpy.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 16:23:02 version 1.1.1.2, 2013/07/22 10:46:11
Line 1 Line 1
 /*      $OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $     */  /*      $OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $     */
   
 /*  /*
 * Copyright (c) 1998, 2003-2005, 2010-2011 * Copyright (c) 1998, 2003-2005, 2010-2011, 2013
  *      Todd C. Miller <Todd.Miller@courtesan.com>   *      Todd C. Miller <Todd.Miller@courtesan.com>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
Line 19 Line 19
   
 #include <config.h>  #include <config.h>
   
   #ifndef HAVE_STRLCPY
   
 #include <sys/types.h>  #include <sys/types.h>
   
 #include "missing.h"  #include "missing.h"
Line 53  strlcpy(char *dst, const char *src, size_t siz) Line 55  strlcpy(char *dst, const char *src, size_t siz)
   
         return s - src - 1;     /* count does not include NUL */          return s - src - 1;     /* count does not include NUL */
 }  }
   #endif /* HAVE_STRLCPY */

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


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