Accepting request 787614 from Base:System
OBS-URL: https://build.opensuse.org/request/show/787614 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sysfsutils?expand=0&rev=23
This commit is contained in:
commit
565f65a9b0
@ -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