[hackers] [sbase] increment pointer by runelen(delim) not 1 || Evan Gates

From: <git_AT_suckless.org>
Date: Fri, 13 Mar 2015 14:42:42 +0100 (CET)

commit 1f1cc5a9ae005926b3500718b4e8230ef644f555
Author: Evan Gates <evan.gates_AT_gmail.com>
Date: Thu Mar 12 14:46:30 2015 -0700

    increment pointer by runelen(delim) not 1

diff --git a/sed.c b/sed.c
index 54282cf..f341947 100644
--- a/sed.c
+++ b/sed.c
_AT_@ -860,7 +860,7 @@ get_s_arg(Cmd *c, char *s)
                         /* FIXME: different eregcomp that calls fatal */
                         eregcomp(c->u.s.re, s, 0);
                 }
- s = p + 1;
+ s = p + runelen(delim);
         }
 
         /* Replace */
_AT_@ -894,7 +894,7 @@ get_s_arg(Cmd *c, char *s)
         if (gflags.s_cont)
                 return p;
 
- s = p + 1;
+ s = p + runelen(delim);
 
         /* Flags */
         p = semicolon_arg(s = chomp(s));
Received on Fri Mar 13 2015 - 14:42:42 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 13 2015 - 14:48:16 CET