From 8d649836590c16a43d156ec7c4d33537cd47629c Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 6 May 2020 11:12:54 +0200 Subject: [PATCH] const parameter added --- src/frontend/postsc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/postsc.c b/src/frontend/postsc.c index b32e4393f..26221596f 100644 --- a/src/frontend/postsc.c +++ b/src/frontend/postsc.c @@ -404,10 +404,10 @@ int PS_Arc(int x0, int y0, int r, double theta, double delta_theta) int PS_Text(const char *text_in, int x, int y, int angle) { int savedlstyle, savedcolor; - char *text; #ifdef EXT_ASC - text = text_in; + const char *text = text_in; #else + char *text; { const size_t n_char_text = strlen(text_in); text = TMALLOC(char, n_char_text);