From a59d1975cc18cdd7bd7bcc5ad6a5b2ed7e62b473 Mon Sep 17 00:00:00 2001 From: Richard Lowe Date: Wed, 15 Jun 2011 13:30:14 +0100 Subject: [PATCH] 1222 crypt may modify constant data Reviewed by: Gordon Ross Reviewed by: Albert Lee Approved by: Garret D'Amore --- usr/src/cmd/crypt/crypt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr/src/cmd/crypt/crypt.c b/usr/src/cmd/crypt/crypt.c index ffb9ca0b9b..0edc2eb771 100644 --- a/usr/src/cmd/crypt/crypt.c +++ b/usr/src/cmd/crypt/crypt.c @@ -28,7 +28,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" /* * A one-rotor machine designed along the lines of Enigma * but considerably trivialized. @@ -115,7 +114,7 @@ main(int argc, char **argv) int kflag = 0; char *buf; char key[8]; - char *keyvar = "CrYpTkEy=XXXXXXXX"; + char keyvar[] = "CrYpTkEy=XXXXXXXX"; char *s; if (argc < 2) { -- 2.11.4.GIT