mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 17:53:13 +02:00
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
@@ -630,7 +629,7 @@ gui_completion_build_list (struct t_gui_completion *completion)
|
||||
}
|
||||
if (repeat_last)
|
||||
{
|
||||
pos_space = rindex (template, ' ');
|
||||
pos_space = strrchr (template, ' ');
|
||||
gui_completion_build_list_template (completion,
|
||||
(pos_space) ?
|
||||
pos_space + 1 : template,
|
||||
|
||||
@@ -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