diff options
author | Sascha Schumann <sas@php.net> | 2002-06-29 18:46:49 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2002-06-29 18:46:49 +0000 |
commit | 71a603ea321533d30ad4f89afe844be835dae38e (patch) | |
tree | 795a24ca5b2637d8dfc93228d590153ab5696230 /ext | |
parent | dc900d4f77b6787479c7e9888a7c7af646ca09b3 (diff) | |
download | php-git-71a603ea321533d30ad4f89afe844be835dae38e.tar.gz |
Fix some 8bit issues with IRCG nickname encoding and
Change the underlying interface of smart_str to accept unsigned char.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/php_smart_str.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/php_smart_str.h b/ext/standard/php_smart_str.h index d05e615fe7..63a0b1b527 100644 --- a/ext/standard/php_smart_str.h +++ b/ext/standard/php_smart_str.h @@ -49,13 +49,13 @@ #define smart_str_append_long(dest, val) smart_str_append_long_ex(dest, val, 0) #define smart_str_append_unsigned(dest, val) smart_str_append_unsigned_ex(dest, val, 0) -static inline void smart_str_appendc_ex(smart_str *dest, char c, int what) +static inline void smart_str_appendc_ex(smart_str *dest, unsigned char c, int what) { size_t newlen; smart_str_alloc(dest, 1, what); dest->len = newlen; - dest->c[dest->len - 1] = c; + ((unsigned char *) dest->c)[dest->len - 1] = c; } |