and modify that.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6811
dc483132-0cff-0310-8789-
dd5450dbe970
+Mon Sep 18 14:17:15 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * asn1_encode.c (asn1_encode_generaltime): Don't modify a const
+ input variable val; copy it to a scratch variable and
+ modify that.
+
Wed Sep 13 19:53:30 1995 Mark Eichin <eichin@cygnus.com>
* krb5_decode.c (clean_krb5_authenticator, clean_krb5_ticket,
struct tm *gtime;
char s[16];
int length, sum=0;
+ time_t gmt_time;
- val += EPOCH;
- gtime = gmtime(&val);
+ gmt_time = val + EPOCH;
+ gtime = gmtime(&gmt_time);
/* Time encoding: YYYYMMDDhhmmssZ */
sprintf(s, "%04d%02d%02d%02d%02d%02dZ",