* kadmin5.c (kadmin_startup): initialize action before strcat'ing
authorMark Eichin <eichin@mit.edu>
Mon, 2 Oct 1995 19:23:29 +0000 (19:23 +0000)
committerMark Eichin <eichin@mit.edu>
Mon, 2 Oct 1995 19:23:29 +0000 (19:23 +0000)
on to it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6918 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/v5client/ChangeLog
src/kadmin/v5client/kadmin5.c

index 05dbd1f1198f7019bd90d3ffff07c273d09d2a8f..c999b401c35762dcca93628d2350a7a20ed7d061 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 29 14:44:24 1995  Mark Eichin  <eichin@cygnus.com>
+
+       * kadmin5.c (kadmin_startup): initialize action before strcat'ing
+       on to it.
+
 Wed Sep 06 14:20:57 1995   Chris Provenzano (proven@mit.edu)
 
         * kadmin5.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
index 749cf0d3adbb7fb1ead375ac12e9da0bfa4445db..57cca4f5ccedf677bfad5805a36aa478b57be437 100644 (file)
@@ -1726,6 +1726,7 @@ kadmin_startup(argc, argv)
 
        n2alloc++;
        if (action = (char *) malloc(n2alloc)) {
+           action[0] = 0;
            for (i=optind; i<argc; i++) {
                strcat(action, argv[i]);
                strcat(action, " ");