+Tue Oct 4 14:32:39 1994 Theodore Y. Ts'o (tytso@dcl)
+
+ * krb5_decode_test.c (setup, decode_run):
+ * krb5_encode_test.c (setup, encode_run): Don't call strcat on a
+ constant string --- you can't modify a read only string!
+
Thu Sep 29 23:01:58 1994 Theodore Y. Ts'o (tytso@dcl)
* Makefile.in: Relink executabes when libraries change
type ref, *var;\
retval = constructor(&ref);\
if(retval){\
- com_err(strcat("making sample ",typestring),retval,"");\
+ com_err("krb5_decode_test", retval, "while making sample %s", typestring);\
exit(1);\
}
#define decode_run(typestring,description,encoding,decoder,comparator)\
retval = krb5_data_hex_parse(&code,encoding);\
if(retval){\
- com_err(strcat("parsing ",strcat(typestring,description)),retval,"");\
+ com_err("krb5_decode_test", retval, "while parsing %s", typestring);\
exit(1);\
}\
retval = decoder(&code,&var);\
if(retval){\
- com_err(strcat("decoding ",strcat(typestring,description)),retval,"");\
+ com_err("krb5_decode_test", retval, "while decoding %s", typestring);\
}\
assert(comparator(&ref,var),typestring);\
printf("%s\n",description)
#define setup(value,type,typestring,constructor)\
retval = constructor(&(value));\
if(retval){\
- com_err(strcat("making sample ",typestring),retval,"");\
+ com_err("krb5_encode_test", retval, "while making sample %s", typestring);\
exit(1);\
}
#define encode_run(value,type,typestring,description,encoder)\
retval = encoder(&(value),&(code));\
if(retval){\
- com_err(strcat("encoding ",typestring),retval,"");\
+ com_err("krb5_encode_test", retval,"while encoding %s", typestring);\
exit(1);\
}\
retval = asn1_krb5_data_unparse(code,&(code_string));\
if(retval){\
- com_err(strcat("unparsing ",typestring),retval,"");\
+ com_err("krb5_encode_test", retval ,"while unparsing %s", typestring);\
exit(1);\
}\
ktest_destroy_data(&code);\