Module Name: src
Committed By: christos
Date: Fri Jan 13 05:49:27 UTC 2017
Modified Files:
src/usr.sbin/sysinst: disks.c
Log Message:
another buffer overflow.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/sysinst/disks.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/sysinst/disks.c
diff -u src/usr.sbin/sysinst/disks.c:1.12 src/usr.sbin/sysinst/disks.c:1.13
--- src/usr.sbin/sysinst/disks.c:1.12 Tue Jan 26 09:05:29 2016
+++ src/usr.sbin/sysinst/disks.c Fri Jan 13 00:49:27 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: disks.c,v 1.12 2016/01/26 14:05:29 martin Exp $ */
+/* $NetBSD: disks.c,v 1.13 2017/01/13 05:49:27 christos Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -1450,7 +1450,7 @@ incoregpt(pm_devs_t *pm_cur, partinfo *l
strcmp(tt, "part") &&
strcmp(tt, "-")
)
- strncat(p_type, tt, STRSIZE);
+ strlcat(p_type, tt, STRSIZE);
i++;
}
if (p_start == 0 || p_size == 0)