summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/string.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/string.c b/lisp/string.c
index 457979f..2eaf344 100644
--- a/lisp/string.c
+++ b/lisp/string.c
@@ -27,7 +27,8 @@
* Author: Paulo César Pereira de Andrade
*/
-/* $XFree86: xc/programs/xedit/lisp/string.c,v 1.25 2003/05/27 22:27:04 tsi Exp $ */
+/* $XdotOrg: xc/programs/xedit/lisp/string.c,v 1.26 2003/11/27 17:28:43 paulo Exp $ */
+/* $XFree86: xc/programs/xedit/lisp/string.c,v 1.26 2003/11/27 17:28:43 paulo Exp $ */
#include "lisp/helper.h"
#include "lisp/read.h"
@@ -368,7 +369,7 @@ Lisp_Char(LispBuiltin *builtin)
schar simple-string index
*/
{
- char *string;
+ unsigned char *string;
long offset, length;
LispObj *ostring, *oindex;
@@ -379,7 +380,7 @@ Lisp_Char(LispBuiltin *builtin)
CHECK_STRING(ostring);
CHECK_INDEX(oindex);
offset = FIXNUM_VALUE(oindex);
- string = THESTR(ostring);
+ string = (unsigned char*)THESTR(ostring);
length = STRLEN(ostring);
if (offset >= length)