+2005-04-25 Helge Hess <helge.hess@opengroupware.org>
+
+ * fixed gcc 4.0 warnings (v4.5.23)
+
2005-03-08 Helge Hess <helge.hess@opengroupware.org>
* NGLdapConnection.m: fixed not to do unauthenticated binds (related to
}
else { // any other char is escaped ..
*_dest = '%'; _dest++;
- sprintf(_dest, "%02X", (unsigned)*src);
+ sprintf((char *)_dest, "%02X", (unsigned)*src);
_dest += 2;
}
src++;
if ((len = [_source cStringLength]) == 0)
return _source;
- cstr = malloc(len + 1);
+ cstr = malloc(len + 3);
[_source getCString:cstr];
cstr[len] = '\0';
- if (NGContainsUrlInvalidCharacters(cstr)) { // needs to be escaped ?
+ if (NGContainsUrlInvalidCharacters((unsigned char *)cstr)) {
+ // needs to be escaped ?
char *buffer = NULL;
buffer = NGMallocAtomic([_source cStringLength] * 3 + 2);
- NGEscapeUrlBuffer(cstr, buffer);
+ NGEscapeUrlBuffer((unsigned char *)cstr, (unsigned char *)buffer);
s = [[[NSString alloc]
initWithCStringNoCopy:buffer