From 56cbbc64edbe8225c8765efc2fd2da2c1069ef73 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 10 Nov 2008 18:45:17 +0000 Subject: [PATCH] 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 --- src/appl/bsd/krsh.c | 1 + 1 file changed, 1 insertion(+) 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++) { -- 2.26.2