[wiki] [sites] Fix argument order to calloc || Michael Buch

From: <git_AT_suckless.org>
Date: Sat, 30 Jan 2021 01:35:49 +0100

commit a069579f03cc3e24297f368b893dabf74367d411
Author: Michael Buch <michaelbuch12_AT_gmail.com>
Date: Sat Jan 30 00:34:24 2021 +0000

    Fix argument order to calloc

diff --git a/st.suckless.org/patches/copyurl/st-copyurl-0.8.4.diff b/st.suckless.org/patches/copyurl/st-copyurl-0.8.4.diff
index bafe28fd..c0a5e358 100644
--- a/st.suckless.org/patches/copyurl/st-copyurl-0.8.4.diff
+++ b/st.suckless.org/patches/copyurl/st-copyurl-0.8.4.diff
_AT_@ -81,7 +81,7 @@ diff -up ../st-0.8.4/st.c ./st.c
 + colend = 0, /* column of last occurrence */
 + passes = 0; /* how many rows have been scanned */
 +
-+ char *linestr = calloc(sizeof(Rune), term.col+1);
++ char *linestr = calloc(term.col+1, sizeof(Rune));
 + char *c = NULL,
 + *match = NULL;
 +
Received on Sat Jan 30 2021 - 01:35:49 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 30 2021 - 01:36:49 CET