Module Name: src
Committed By: drochner
Date: Tue Nov 17 20:44:26 UTC 2009
Modified Files:
src/lib/libc/ssp: strcat_chk.c strncat_chk.c
Log Message:
make the "src" strings const as in the unchecked equivalents
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/ssp/strcat_chk.c \
src/lib/libc/ssp/strncat_chk.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/ssp/strcat_chk.c
diff -u src/lib/libc/ssp/strcat_chk.c:1.3 src/lib/libc/ssp/strcat_chk.c:1.4
--- src/lib/libc/ssp/strcat_chk.c:1.3 Mon Apr 28 20:23:00 2008
+++ src/lib/libc/ssp/strcat_chk.c Tue Nov 17 20:44:26 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: strcat_chk.c,v 1.3 2008/04/28 20:23:00 martin Exp $ */
+/* $NetBSD: strcat_chk.c,v 1.4 2009/11/17 20:44:26 drochner Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: strcat_chk.c,v 1.3 2008/04/28 20:23:00 martin Exp $");
+__RCSID("$NetBSD: strcat_chk.c,v 1.4 2009/11/17 20:44:26 drochner Exp $");
/*LINTLIBRARY*/
@@ -37,7 +37,7 @@
#include <string.h>
char *
-__strcat_chk(char * __restrict dst, char * __restrict src, size_t slen)
+__strcat_chk(char * __restrict dst, const char * __restrict src, size_t slen)
{
char *d;
Index: src/lib/libc/ssp/strncat_chk.c
diff -u src/lib/libc/ssp/strncat_chk.c:1.3 src/lib/libc/ssp/strncat_chk.c:1.4
--- src/lib/libc/ssp/strncat_chk.c:1.3 Mon Apr 28 20:23:00 2008
+++ src/lib/libc/ssp/strncat_chk.c Tue Nov 17 20:44:26 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: strncat_chk.c,v 1.3 2008/04/28 20:23:00 martin Exp $ */
+/* $NetBSD: strncat_chk.c,v 1.4 2009/11/17 20:44:26 drochner Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: strncat_chk.c,v 1.3 2008/04/28 20:23:00 martin Exp $");
+__RCSID("$NetBSD: strncat_chk.c,v 1.4 2009/11/17 20:44:26 drochner Exp $");
/*LINTLIBRARY*/
@@ -38,7 +38,7 @@
#include <stdio.h>
char *
-__strncat_chk(char * __restrict dst, char * __restrict src, size_t len,
+__strncat_chk(char * __restrict dst, const char * __restrict src, size_t len,
size_t slen)
{
char *d;