diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-09-14 17:58:53 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-09-14 17:58:53 +0200 |
commit | 6c118ee8764593d0217a6ae590a2cf2e2edb7602 (patch) | |
tree | d2a01201db03c68370029faf581990741d4494e8 /lib | |
parent | 6e896a8e7c30d3351f874731835f803cb1edd155 (diff) | |
download | libtasn1-6c118ee8764593d0217a6ae590a2cf2e2edb7602.tar.gz libtasn1-6c118ee8764593d0217a6ae590a2cf2e2edb7602.tar.bz2 libtasn1-6c118ee8764593d0217a6ae590a2cf2e2edb7602.zip |
removed unneeded casts
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ASN1.c | 4 | ||||
-rw-r--r-- | lib/ASN1.y | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -2944,7 +2944,7 @@ int asn1_parser2array(const char *inputFileName,const char *outputFileName, if(outputFileName == NULL){ /* file_out_name = inputFileName + _asn1_tab.c */ - file_out_name=(char *)malloc(dot_p-inputFileName+1+ + file_out_name=malloc(dot_p-inputFileName+1+ strlen("_asn1_tab.c")); memcpy(file_out_name,inputFileName,dot_p-inputFileName); file_out_name[dot_p-inputFileName]=0; @@ -2958,7 +2958,7 @@ int asn1_parser2array(const char *inputFileName,const char *outputFileName, if(vectorName == NULL){ /* vector_name = file name + _asn1_tab */ - vector_name=(char *)malloc(dot_p-slash_p+1+ + vector_name=malloc(dot_p-slash_p+1+ strlen("_asn1_tab")); memcpy(vector_name,slash_p,dot_p-slash_p); vector_name[dot_p-slash_p]=0; @@ -710,7 +710,7 @@ int asn1_parser2array(const char *inputFileName,const char *outputFileName, if(outputFileName == NULL){ /* file_out_name = inputFileName + _asn1_tab.c */ - file_out_name=(char *)malloc(dot_p-inputFileName+1+ + file_out_name=malloc(dot_p-inputFileName+1+ strlen("_asn1_tab.c")); memcpy(file_out_name,inputFileName,dot_p-inputFileName); file_out_name[dot_p-inputFileName]=0; @@ -724,7 +724,7 @@ int asn1_parser2array(const char *inputFileName,const char *outputFileName, if(vectorName == NULL){ /* vector_name = file name + _asn1_tab */ - vector_name=(char *)malloc(dot_p-slash_p+1+ + vector_name=malloc(dot_p-slash_p+1+ strlen("_asn1_tab")); memcpy(vector_name,slash_p,dot_p-slash_p); vector_name[dot_p-slash_p]=0; |