summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2003-03-13 09:32:06 +0000
committerespie <espie@openbsd.org>2003-03-13 09:32:06 +0000
commit45694746acd8356b4e02d26f2600566831646719 (patch)
tree1e876b3d4b1e729116eb34ad2e18d6376ddc08de
parentlots of sprintf -> snprintf and strcpy -> strlcpy; checked by tedu (diff)
downloadwireguard-openbsd-45694746acd8356b4e02d26f2600566831646719.tar.xz
wireguard-openbsd-45694746acd8356b4e02d26f2600566831646719.zip
my style: length is size_t, not int.
-rw-r--r--usr.bin/cdio/cddb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cdio/cddb.c b/usr.bin/cdio/cddb.c
index 4b9c91906e3..e1c355b1b8d 100644
--- a/usr.bin/cdio/cddb.c
+++ b/usr.bin/cdio/cddb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cddb.c,v 1.6 2003/03/13 09:09:29 deraadt Exp $ */
+/* $OpenBSD: cddb.c,v 1.7 2003/03/13 09:32:06 espie Exp $ */
/*
* Copyright (c) 2002 Marc Espie.
*
@@ -106,7 +106,7 @@ safe_copy(char **p, const char *title)
if (*p == NULL)
*p = strdup(copy_buffer);
else {
- int len = strlen(*p) + strlen(copy_buffer) + 1;
+ size_t len = strlen(*p) + strlen(copy_buffer) + 1;
char *n = malloc(len);
if (n == NULL)
return;