(v4_prop_dump): limit strings length, from openbsd

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12155 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-04-28 11:35:55 +00:00
parent dbcc911afa
commit 262b7dcbf4

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2000 Kungliga Tekniska H<>gskolan * Copyright (c) 2000 - 2001, 2003 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -103,7 +103,7 @@ v4_prop_dump(void *arg, const char *file)
memset(&pr, 0, sizeof(pr)); memset(&pr, 0, sizeof(pr));
errno = 0; errno = 0;
lineno++; lineno++;
ret = sscanf(buf, "%s %s %d %d %d %d %lx %lx %s %s %s %s", ret = sscanf(buf, "%63s %63s %d %d %d %d %lx %lx %63s %63s %63s %63s",
pr.name, pr.instance, pr.name, pr.instance,
&pr.max_life, &pr.mkvno, &pr.kvno, &pr.max_life, &pr.mkvno, &pr.kvno,
&attributes, &attributes,