Accepting request 787536 from home:marxin:branches:Base:System
- Update sysfsutils-fix-compiler-issues.patch in order to fix boo#1166612. OBS-URL: https://build.opensuse.org/request/show/787536 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysfsutils?expand=0&rev=14
This commit is contained in:
parent
7f2cf5fe12
commit
d29c73c7a1
@ -110,7 +110,7 @@ diff -aurp sysfsutils-2.1.0.orig/cmd/systool.c sysfsutils-2.1.0/cmd/systool.c
|
||||
|
||||
-#define safestrcpy(to, from) strncpy(to, from, sizeof(to)-1)
|
||||
-#define safestrcat(to, from) strncat(to, from, sizeof(to) - strlen(to)-1)
|
||||
+inline void my_strncpy(char *to, const char *from, size_t max)
|
||||
+static inline void my_strncpy(char *to, const char *from, size_t max)
|
||||
+{
|
||||
+ size_t i;
|
||||
|
||||
@ -15907,7 +15907,7 @@ diff -aurp sysfsutils-2.1.0.orig/lib/sysfs.h sysfsutils-2.1.0/lib/sysfs.h
|
||||
|
||||
-#define safestrcpy(to, from) strncpy(to, from, sizeof(to)-1)
|
||||
-#define safestrcat(to, from) strncat(to, from, sizeof(to) - strlen(to)-1)
|
||||
+inline void my_strncpy(char *to, const char *from, size_t max)
|
||||
+static inline void my_strncpy(char *to, const char *from, size_t max)
|
||||
+{
|
||||
+ size_t i;
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 23 16:16:25 UTC 2020 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Update sysfsutils-fix-compiler-issues.patch in order to
|
||||
fix boo#1166612.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 21 18:05:28 UTC 2020 - Lee Duncan <lduncan@suse.com>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user