all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 2640175b8022b513414f81e4df4807b753dd2c7e 705 bytes (raw)
name: gnu/packages/patches/sympow-null-terminate-dupdir.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
https://gitlab.com/rezozer/forks/sympow/-/merge_requests/5

diff --git a/main.c b/main.c
index 1d018dfc76888790212c7a203154c45b88acb383..0ab1386b5f3a62a79cc08adceb2e3e9553e08a4d 100644
--- a/main.c
+++ b/main.c
@@ -97,7 +97,7 @@ char * dupdirname(const char *name) {
   if (eofn!=name) {
    const size_t ublofn=eofn-name;
    size_t cdx=0; const char * dim=NULL; char * dam=NULL; int flag=0;
-   foldername=(char *)(malloc(ublofn)); memset(foldername,'\0',ublofn);
+   foldername=(char *)(malloc(ublofn+1)); memset(foldername,'\0',ublofn+1);
    for(cdx=0,dim=name,dam=foldername;cdx<ublofn;++dim,++cdx) {
     if (*dim == '/') flag=1;
     else {if (flag) {*dam='/'; ++dam; flag=0;} *dam=*dim; ++dam;}}

debug log:

solving 2640175b80 ...
found 2640175b80 in https://yhetil.org/guix/1ba8f917eb764c920eab9c766026dca251ec1f3c.1685391447.git.guix@ikherbers.com/

applying [1/1] https://yhetil.org/guix/1ba8f917eb764c920eab9c766026dca251ec1f3c.1685391447.git.guix@ikherbers.com/
diff --git a/gnu/packages/patches/sympow-null-terminate-dupdir.patch b/gnu/packages/patches/sympow-null-terminate-dupdir.patch
new file mode 100644
index 0000000000..2640175b80

Checking patch gnu/packages/patches/sympow-null-terminate-dupdir.patch...
Applied patch gnu/packages/patches/sympow-null-terminate-dupdir.patch cleanly.

index at:
100644 2640175b8022b513414f81e4df4807b753dd2c7e	gnu/packages/patches/sympow-null-terminate-dupdir.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.