From: Greg Hudson Date: Mon, 10 Nov 2008 18:45:17 +0000 (+0000) Subject: Fix a krsh bug introduced in r21001 which could cause garbage at the X-Git-Tag: krb5-1.7-alpha1~212 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=56cbbc64edbe8225c8765efc2fd2da2c1069ef73;p=krb5.git Fix a krsh bug introduced in r21001 which could cause garbage at the beginning of the command string. ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21065 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/krsh.c b/src/appl/bsd/krsh.c index 6441891ee..ac92057a4 100644 --- a/src/appl/bsd/krsh.c +++ b/src/appl/bsd/krsh.c @@ -321,6 +321,7 @@ main(argc, argv0) if (encrypt_flag) cc += 3; args = (char *) malloc((unsigned) cc); + *args = '\0'; if (encrypt_flag) strlcpy(args, "-x ", cc); for (ap = argv; *ap; ap++) {