]> git.eshelyaron.com Git - emacs.git/commitdiff
(init_editfns): Add casts.
authorRichard M. Stallman <rms@gnu.org>
Fri, 14 Apr 1995 18:31:50 +0000 (18:31 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 14 Apr 1995 18:31:50 +0000 (18:31 +0000)
src/editfns.c

index 29eef9a707cf83f5cc26d710a1cad3ef5476de12..c0dabc71fb79b3e41ad4ac13606e03120800154a 100644 (file)
@@ -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);
 }