diff options
| author | Paul Eggert | 2011-01-30 14:22:58 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-01-30 14:22:58 -0800 |
| commit | 4eec7f8b2b465c6fc2c09d37d4da2b540f607df0 (patch) | |
| tree | 9f4e30300e4f96dd3c72f5f435032f8180ce1a6c /src/indent.c | |
| parent | fcabb1a6e66f7e6cf4fe0984c4d5c169f4decd8a (diff) | |
| parent | 42a5b22fc0201fe98ad8a093c3ab91122ab3a72b (diff) | |
| download | emacs-4eec7f8b2b465c6fc2c09d37d4da2b540f607df0.tar.gz emacs-4eec7f8b2b465c6fc2c09d37d4da2b540f607df0.zip | |
Use SSDATA when the context wants char *.
Diffstat (limited to 'src/indent.c')
| -rw-r--r-- | src/indent.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/indent.c b/src/indent.c index e2cd0fc0a99..b40cb9f50b6 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -2046,7 +2046,7 @@ whether or not it is currently displayed in some window. */) | |||
| 2046 | it_overshoot_expected = 1; | 2046 | it_overshoot_expected = 1; |
| 2047 | else if (it.method == GET_FROM_STRING) | 2047 | else if (it.method == GET_FROM_STRING) |
| 2048 | { | 2048 | { |
| 2049 | const char *s = SDATA (it.string); | 2049 | const char *s = SSDATA (it.string); |
| 2050 | const char *e = s + SBYTES (it.string); | 2050 | const char *e = s + SBYTES (it.string); |
| 2051 | while (s < e && *s != '\n') | 2051 | while (s < e && *s != '\n') |
| 2052 | ++s; | 2052 | ++s; |
| @@ -2164,4 +2164,3 @@ syms_of_indent (void) | |||
| 2164 | defsubr (&Svertical_motion); | 2164 | defsubr (&Svertical_motion); |
| 2165 | defsubr (&Scompute_motion); | 2165 | defsubr (&Scompute_motion); |
| 2166 | } | 2166 | } |
| 2167 | |||