summaryrefslogtreecommitdiffstats
path: root/src/rccstring.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rccstring.c')
-rw-r--r--src/rccstring.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/rccstring.c b/src/rccstring.c
index 0f46c90..6ccc207 100644
--- a/src/rccstring.c
+++ b/src/rccstring.c
@@ -1,3 +1,22 @@
+/*
+ LibRCC - module handling internal string representation
+
+ Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org>
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of version 2 of the GNU General Public License as published
+ by the Free Software Foundation.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+*/
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -180,7 +199,7 @@ size_t rccStringSizedGetChars(const char *str, size_t size) {
size_t i, skip = 0, chars = 0;
const unsigned char *tmp;
- tmp = rccGetString(str);
+ tmp = (unsigned char*)rccGetString(str);
for (i=0;(size?(size-i):tmp[i]);i++) {
if (skip) {