- nedit-5.6-malloc-return-pointers.patch: Return correct pointers.

OBS-URL: https://build.opensuse.org/package/show/editors/nedit?expand=0&rev=14
This commit is contained in:
Daniel Rahn 2015-04-10 09:32:47 +00:00 committed by Git OBS Bridge
parent 41764829d5
commit d003259f91
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,18 @@
--- util/nedit_malloc.c
+++ util/nedit_malloc.c
@@ -45,6 +45,7 @@
fprintf(stderr,"NEditMalloc(%lu) failed\n", (unsigned long)size);
exit(1);
}
+ return ptr;
}
@@ -63,6 +64,7 @@
fprintf(stderr,"NEditRealloc(%lu) failed\n", (unsigned long)new_size);
exit(1);
}
+ return new_ptr;
}

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Apr 10 09:31:57 UTC 2015 - drahn@suse.com
- nedit-5.6-malloc-return-pointers.patch: Return correct pointers.
-------------------------------------------------------------------
Fri Apr 10 08:19:18 UTC 2015 - drahn@suse.com

View File

@ -20,6 +20,7 @@ Patch3: %{name}-5.5CVS-nc-manfix.patch
Patch4: %{name}-5.5-visfix.patch
Patch5: %{name}-5.5CVS-utf8.patch
Patch6: %{name}-5.5CVS-motif.patch
Patch7: %{name}-5.6-malloc-return-pointers.patch
%description
NEdit is a GUI style plain text editor for workstations with the X Window System
@ -35,6 +36,7 @@ and a lot other nice features (and extensions for programmers).
%patch4 -p1
%patch5 -p0
%patch6 -p1
%patch7 -p0
%build
#find -name .cvsignore |xargs rm