Module Name: src Committed By: maxv Date: Fri Nov 2 11:59:59 UTC 2018
Modified Files: src/sys/ddb: db_proc.c Log Message: no, should be dst To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/ddb/db_proc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ddb/db_proc.c diff -u src/sys/ddb/db_proc.c:1.7 src/sys/ddb/db_proc.c:1.8 --- src/sys/ddb/db_proc.c:1.7 Fri Nov 2 08:59:59 2018 +++ src/sys/ddb/db_proc.c Fri Nov 2 11:59:59 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: db_proc.c,v 1.7 2018/11/02 08:59:59 maxv Exp $ */ +/* $NetBSD: db_proc.c,v 1.8 2018/11/02 11:59:59 maxv Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -61,7 +61,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: db_proc.c,v 1.7 2018/11/02 08:59:59 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_proc.c,v 1.8 2018/11/02 11:59:59 maxv Exp $"); #ifndef _KERNEL #include <stdbool.h> @@ -114,7 +114,7 @@ db_read_string(const char *src, size_t l for (i = 0; i < len; i++) { db_read_bytes((db_addr_t)&src[i], 1, &dst[i]); - if (src[i] == '\0') + if (dst[i] == '\0') break; } }