Dominique Leuenberger 2020-03-25 22:43:01 +00:00 committed by Git OBS Bridge
commit 565f65a9b0
2 changed files with 8 additions and 2 deletions

View File

@ -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;

View File

@ -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>