summaryrefslogtreecommitdiffstats
path: root/duid.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-11 20:30:24 +0000
committerRoy Marples <roy@marples.name>2007-10-11 20:30:24 +0000
commitd9448b42248e0868f3ab391e1107141bf0ff058f (patch)
tree964ca606a88f171f86a6ae41346025e53cf24baf /duid.c
parent1c9d0720f9039b7a8e783d7db7f87d9e0f56e604 (diff)
downloaddhcpcd-d9448b42248e0868f3ab391e1107141bf0ff058f.tar.xz
Don't malloc pointer size when we mean data size
Diffstat (limited to 'duid.c')
-rw-r--r--duid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/duid.c b/duid.c
index 160b131c..2645677f 100644
--- a/duid.c
+++ b/duid.c
@@ -59,7 +59,7 @@ void get_duid (interface_t *iface)
if ((fp = fopen (DUIDFILE, "r"))) {
char *fduid;
char *fdp;
- fduid = fdp = xmalloc ((sizeof (char *) * DUID_LEN * 2) + 1);
+ fduid = fdp = xmalloc ((sizeof (char) * DUID_LEN * 2) + 1);
if (fscanf (fp, "%260s", fduid) == 1) {
char c[3];
c[2] = '\0';