From 726ebbaa9f1cae426b5f2a4bddbe0a88c81d754e Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 6 Mar 2011 23:09:42 +0100 Subject: fix bit rot in scripts/Makefile.IMA Signed-off-by: Denys Vlasenko --- loginutils/getty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loginutils') diff --git a/loginutils/getty.c b/loginutils/getty.c index 3f20c8e81..dfa15b3da 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c @@ -87,7 +87,7 @@ struct globals { const char *login; /* login program */ const char *fakehost; const char *tty; /* name of tty */ - const char *initstring; /* modem init string */ + char *initstring; /* modem init string */ const char *issue; /* alternative issue file */ int numspeed; /* number of baud rates to try */ int speeds[MAX_SPEED]; /* baud rates to be tried */ @@ -176,7 +176,7 @@ static void parse_args(char **argv) if (flags & F_INITSTRING) { G.initstring = xstrdup(G.initstring); /* decode \ddd octal codes into chars */ - strcpy_and_process_escape_sequences((char*)G.initstring, G.initstring); + strcpy_and_process_escape_sequences(G.initstring, G.initstring); } argv += optind; debug("after getopt\n"); -- cgit v1.2.3