]> granicus.if.org Git - php/commitdiff
- Fix warning
authorMarcus Boerger <helly@php.net>
Thu, 16 Mar 2006 00:53:58 +0000 (00:53 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 16 Mar 2006 00:53:58 +0000 (00:53 +0000)
main/streams/streams.c

index 3dc1a6b7033239cf7b12cbbbeb068d97637817e0..d3b127495b1283f780300e92f93cf1e84edf6ef5 100755 (executable)
@@ -1236,7 +1236,7 @@ static size_t _php_stream_write_buffer(php_stream *stream, int buf_type, zstr bu
                } else {
                        UErrorCode status = U_ZERO_ERROR;
                        char *t = freeme;
-                       UChar *p = buf_orig.u;
+                       const UChar *p = buf_orig.u;
 
                        switch (ucnv_getType(stream->output_encoding)) {
                                case UCNV_SBCS: