diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-30 20:28:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-30 20:28:39 +0000 |
commit | c45c81d3fa1ea800b740e2c42e8d974d9c48050e (patch) | |
tree | 28c84bfea04ebb4b8cd10cc10cb91c71c76f8961 /sbin/ccdconfig | |
parent | 6118f58df0e25cc49087803baaae8741e21af96e (diff) |
snprintf
Diffstat (limited to 'sbin/ccdconfig')
-rw-r--r-- | sbin/ccdconfig/ccdconfig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ccdconfig/ccdconfig.c b/sbin/ccdconfig/ccdconfig.c index 45bfb805c9b..68b7bf220c6 100644 --- a/sbin/ccdconfig/ccdconfig.c +++ b/sbin/ccdconfig/ccdconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccdconfig.c,v 1.17 2002/02/16 21:27:33 millert Exp $ */ +/* $OpenBSD: ccdconfig.c,v 1.18 2003/03/30 20:28:38 deraadt Exp $ */ /* $NetBSD: ccdconfig.c,v 1.6 1996/05/16 07:11:18 thorpej Exp $ */ /*- @@ -444,9 +444,9 @@ resolve_ccdname(name) free(path); return (NULL); } - (void)sprintf(path, "/dev/%s%c", name, 'a' + rawpart); + (void)snprintf(path, newlen, "/dev/%s%c", name, 'a' + rawpart); } else - (void)sprintf(path, "/dev/%s", name); + (void)snprintf(path, newlen, "/dev/%s", name); return (path); } |