Thread (13 messages) 13 messages, 4 authors, 2021-05-19
STALE1869d
Revisions (7)
  1. v1 [diff vs current]
  2. v1 current
  3. v1 [diff vs current]
  4. v2 [diff vs current]
  5. v2 [diff vs current]
  6. v2 [diff vs current]
  7. v2 [diff vs current]

[PATCH v1 1/3] lib: utils: Add macro to libfdt_env.h for strncpy

From: Xiang W <hidden>
Date: 2021-05-17 13:47:37

? 2021-05-17?? 19:33 +0800?Daniel Schaefer???
Just like 2845d2d2cf4fb74a89452ba223995aa4a118c07e

Cc: Abner Chang <redacted>
Cc: Anup Patel <redacted>
Signed-off-by: Daniel Schaefer <redacted>
Look good to me.
This description doesn't look very clear.

I recommend reword:

lib: utils: Add a macro in libfdt_env.h for strncpy

This commit add a macro to replace strncpy with sbi_strncpy.

Regards
Xiang W
quoted hunk ↗ jump to hunk
---
 lib/utils/libfdt/libfdt_env.h | 1 +
 1 file changed, 1 insertion(+)
diff --git a/lib/utils/libfdt/libfdt_env.h
b/lib/utils/libfdt/libfdt_env.h
index bc3e7588660a..f9d9c6783c52 100644
--- a/lib/utils/libfdt/libfdt_env.h
+++ b/lib/utils/libfdt/libfdt_env.h
@@ -31,6 +31,7 @@
 #define strchr		sbi_strchr
 #define strrchr		sbi_strrchr
 #define strcpy		sbi_strcpy
+#define strncpy		sbi_strncpy
 #define strcmp		sbi_strcmp
 #define strncmp		sbi_strncmp
 #define strlen		sbi_strlen
-- 
2.30.1
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help