opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

0004-HACK-manually-expand-broken-macro.patch (771B)


      1 From e5088b6fecc4897180f601d736c46093a834a162 Mon Sep 17 00:00:00 2001
      2 From: Randy Palamar <palamar@ualberta.ca>
      3 Date: Sun, 15 Oct 2023 13:08:51 -0600
      4 Subject: [PATCH] HACK: manually expand broken macro
      5 
      6 ---
      7  src/tool_setopt.c | 2 +-
      8  1 file changed, 1 insertion(+), 1 deletion(-)
      9 
     10 diff --git a/src/tool_setopt.c b/src/tool_setopt.c
     11 index de3b78f..774f34d 100644
     12 --- a/src/tool_setopt.c
     13 +++ b/src/tool_setopt.c
     14 @@ -222,7 +222,7 @@ static char *c_escape(const char *str, curl_off_t len)
     15      cutoff = 3;
     16    }
     17  
     18 -  result = curlx_dyn_addn(&escaped, STRCONST(""));
     19 +  result = curlx_dyn_addn(&escaped, "", sizeof("") - 1);
     20    for(s = str; !result && len; s++, len--) {
     21      /* escape question marks as well, to prevent generating accidental
     22         trigraphs */
     23 -- 
     24 2.42.0
     25