aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c6
1 files 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 ()
104 104
105#ifdef AMPERSAND_FULL_NAME 105#ifdef AMPERSAND_FULL_NAME
106 p = XSTRING (Vuser_full_name)->data; 106 p = XSTRING (Vuser_full_name)->data;
107 q = (char *) index (p, '&'); 107 q = (unsigned char *) index (p, '&');
108 /* Substitute the login name for the &, upcasing the first character. */ 108 /* Substitute the login name for the &, upcasing the first character. */
109 if (q) 109 if (q)
110 { 110 {
111 r = (char *) alloca (strlen (p) + XSTRING (Vuser_name)->size + 1); 111 r = (unsigned char *) alloca (strlen (p) + XSTRING (Vuser_name)->size + 1);
112 bcopy (p, r, q - p); 112 bcopy (p, r, q - p);
113 r[q - p] = 0; 113 r[q - p] = 0;
114 strcat (r, XSTRING (Vuser_name)->data); 114 strcat (r, XSTRING (Vuser_name)->data);
@@ -118,7 +118,7 @@ init_editfns ()
118 } 118 }
119#endif /* AMPERSAND_FULL_NAME */ 119#endif /* AMPERSAND_FULL_NAME */
120 120
121 p = getenv ("NAME"); 121 p = (unsigned char *) getenv ("NAME");
122 if (p) 122 if (p)
123 Vuser_full_name = build_string (p); 123 Vuser_full_name = build_string (p);
124} 124}