mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 16:23:14 +02:00
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "rmodifier.h"
|
||||
@@ -342,7 +341,7 @@ rmodifier_new_with_string (const char *name, const char *value)
|
||||
new_rmodifier = NULL;
|
||||
|
||||
pos1 = strchr (value, ';');
|
||||
pos2 = rindex (value, ';');
|
||||
pos2 = strrchr (value, ';');
|
||||
if (pos1 && pos2 && (pos2 > pos1))
|
||||
{
|
||||
modifiers = weechat_strndup (value, pos1 - value);
|
||||
|
||||
Reference in New Issue
Block a user