diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-08 22:31:41 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-08 22:31:41 -0700 |
commit | 9a74512ffdc1628f1b87d2191439915c63b9104f (patch) | |
tree | 8a58dec4a8604228908b09cdb69a286d89c271d2 /src/setauth.c | |
parent | 4033226105fa861ab5f0276850afc24c0fa45406 (diff) |
Stop casting return values from malloc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/setauth.c')
-rw-r--r-- | src/setauth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/setauth.c b/src/setauth.c index 2e9f882..1017b02 100644 --- a/src/setauth.c +++ b/src/setauth.c @@ -100,7 +100,7 @@ IceSetPaAuthData ( _IcePaAuthDataEntries[j].auth_data_length = entries[i].auth_data_length; - _IcePaAuthDataEntries[j].auth_data = (char *) malloc ( + _IcePaAuthDataEntries[j].auth_data = malloc ( entries[i].auth_data_length); memcpy (_IcePaAuthDataEntries[j].auth_data, entries[i].auth_data, entries[i].auth_data_length); |