aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.c
diff options
context:
space:
mode:
authorPaul Eggert2011-01-30 14:22:58 -0800
committerPaul Eggert2011-01-30 14:22:58 -0800
commit4eec7f8b2b465c6fc2c09d37d4da2b540f607df0 (patch)
tree9f4e30300e4f96dd3c72f5f435032f8180ce1a6c /src/doc.c
parentfcabb1a6e66f7e6cf4fe0984c4d5c169f4decd8a (diff)
parent42a5b22fc0201fe98ad8a093c3ab91122ab3a72b (diff)
downloademacs-4eec7f8b2b465c6fc2c09d37d4da2b540f607df0.tar.gz
emacs-4eec7f8b2b465c6fc2c09d37d4da2b540f607df0.zip
Use SSDATA when the context wants char *.
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/doc.c b/src/doc.c
index 6e53545dfb8..b47bf8132a0 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -120,8 +120,8 @@ get_doc_string (Lisp_Object filepos, int unibyte, int definition)
120 if (minsize < 8) 120 if (minsize < 8)
121 minsize = 8; 121 minsize = 8;
122 name = (char *) alloca (minsize + SCHARS (file) + 8); 122 name = (char *) alloca (minsize + SCHARS (file) + 8);
123 strcpy (name, SDATA (Vdoc_directory)); 123 strcpy (name, SSDATA (Vdoc_directory));
124 strcat (name, SDATA (file)); 124 strcat (name, SSDATA (file));
125 } 125 }
126 else 126 else
127 { 127 {
@@ -137,7 +137,7 @@ get_doc_string (Lisp_Object filepos, int unibyte, int definition)
137 /* Preparing to dump; DOC file is probably not installed. 137 /* Preparing to dump; DOC file is probably not installed.
138 So check in ../etc. */ 138 So check in ../etc. */
139 strcpy (name, "../etc/"); 139 strcpy (name, "../etc/");
140 strcat (name, SDATA (file)); 140 strcat (name, SSDATA (file));
141 141
142 fd = emacs_open (name, O_RDONLY, 0); 142 fd = emacs_open (name, O_RDONLY, 0);
143 } 143 }
@@ -559,9 +559,9 @@ the same file name is found in the `doc-directory'. */)
559 CHECK_STRING (Vdoc_directory); 559 CHECK_STRING (Vdoc_directory);
560 name = (char *) alloca (SCHARS (filename) 560 name = (char *) alloca (SCHARS (filename)
561 + SCHARS (Vdoc_directory) + 1); 561 + SCHARS (Vdoc_directory) + 1);
562 strcpy (name, SDATA (Vdoc_directory)); 562 strcpy (name, SSDATA (Vdoc_directory));
563 } 563 }
564 strcat (name, SDATA (filename)); /*** Add this line ***/ 564 strcat (name, SSDATA (filename)); /*** Add this line ***/
565 565
566 /* Vbuild_files is nil when temacs is run, and non-nil after that. */ 566 /* Vbuild_files is nil when temacs is run, and non-nil after that. */
567 if (NILP (Vbuild_files)) 567 if (NILP (Vbuild_files))