summaryrefslogtreecommitdiff
blob: 60e7d81fcdb2c1708a68e30d5f6015859a23ffb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/ntext.cc
+++ b/ntext.cc
@@ -244,7 +244,7 @@
     return;
   }
 
-  p = strchr(text, '\n');
+  p = strchr((char *)text, '\n');
   if (p!=NULL) {
     *p = 0;
     i = strlen(text);