From 8f1e2d16d676d45146f5d2057370c4f058cf95cd Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 14 Apr 1995 18:31:50 +0000 Subject: [PATCH] (init_editfns): Add casts. --- src/editfns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editfns.c b/src/editfns.c index 29eef9a707c..c0dabc71fb7 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -104,11 +104,11 @@ init_editfns () #ifdef AMPERSAND_FULL_NAME p = XSTRING (Vuser_full_name)->data; - q = (char *) index (p, '&'); + q = (unsigned char *) index (p, '&'); /* Substitute the login name for the &, upcasing the first character. */ if (q) { - r = (char *) alloca (strlen (p) + XSTRING (Vuser_name)->size + 1); + r = (unsigned char *) alloca (strlen (p) + XSTRING (Vuser_name)->size + 1); bcopy (p, r, q - p); r[q - p] = 0; strcat (r, XSTRING (Vuser_name)->data); @@ -118,7 +118,7 @@ init_editfns () } #endif /* AMPERSAND_FULL_NAME */ - p = getenv ("NAME"); + p = (unsigned char *) getenv ("NAME"); if (p) Vuser_full_name = build_string (p); } -- 2.39.5