summaryrefslogtreecommitdiff
path: root/lib/opencdk/misc.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-12-10 15:30:57 +0100
committerSimon Josefsson <simon@josefsson.org>2008-12-10 15:30:57 +0100
commit542b5fc962fdf5bdfaefd53f0e9f481d7059c70f (patch)
treea693d3a7e69d99124834d8dff9c7887638af59a4 /lib/opencdk/misc.c
parent0da8bc85fdfb062bd7f5605913d5a8a34b6ea896 (diff)
downloadgnutls-542b5fc962fdf5bdfaefd53f0e9f481d7059c70f.tar.gz
Revert "Fix warnings in opencdk."
This reverts commit 59cddc711e55bbd094bdf95986277fb33ba964ee.
Diffstat (limited to 'lib/opencdk/misc.c')
-rw-r--r--lib/opencdk/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/opencdk/misc.c b/lib/opencdk/misc.c
index a8acdf8dfe..13e7fd5275 100644
--- a/lib/opencdk/misc.c
+++ b/lib/opencdk/misc.c
@@ -97,7 +97,7 @@ cdk_strlist_add (cdk_strlist_t * list, const char *string)
sl = cdk_calloc (1, sizeof *sl + strlen (string) + 2);
if (!sl)
return NULL;
- sl->d = (char*) (sl + sizeof(*sl));
+ sl->d = sl + sizeof(*sl);
strcpy (sl->d, string);
sl->next = *list;
*list = sl;