mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 10:43:13 +02:00
Add of "modifier" hook, migration of charset plugin to new API, SIGHUP signal catched (reload all config files), better config files reloading
This commit is contained in:
@@ -47,12 +47,12 @@
|
||||
|
||||
|
||||
/*
|
||||
* strndup: define strndup function if not existing (FreeBSD and maybe other)
|
||||
* string_strndup: define strndup function for systems where this function does
|
||||
* not exist (FreeBSD and maybe other)
|
||||
*/
|
||||
|
||||
#ifndef HAVE_STRNDUP
|
||||
char *
|
||||
strndup (char *string, int length)
|
||||
string_strndup (char *string, int length)
|
||||
{
|
||||
char *result;
|
||||
|
||||
@@ -68,7 +68,6 @@ strndup (char *string, int length)
|
||||
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* string_tolower: locale independant string conversion to lower case
|
||||
@@ -337,7 +336,7 @@ string_remove_quotes (char *string, char *quotes)
|
||||
{
|
||||
if (pos_end == (pos_start + 1))
|
||||
return strdup ("");
|
||||
return strndup (pos_start + 1, pos_end - pos_start - 1);
|
||||
return string_strndup (pos_start + 1, pos_end - pos_start - 1);
|
||||
}
|
||||
|
||||
return strdup (string);
|
||||
|
||||
Reference in New Issue
Block a user