From 98c2be623143c777e8a6a0222377d448e9bb1960 Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Fri, 18 Aug 2023 13:26:11 +0800
Subject: [PATCH] mv strlcpy to libkysdk_strlcpy

---
 src/proc/libkyprocess.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/proc/libkyprocess.c b/src/proc/libkyprocess.c
index 4d8553d..6c7482d 100644
--- a/src/proc/libkyprocess.c
+++ b/src/proc/libkyprocess.c
@@ -154,7 +154,7 @@ static int isnumber(char *c)
 	return 1;
 }
 
-static size_t strlcpy(char *dst, const char *src, size_t siz)
+static size_t libkysdk_strlcpy(char *dst, const char *src, size_t siz)
 {
 	char *d = dst;
 	const char *s = src;
@@ -811,7 +811,7 @@ static int get_proc_name(pid_t pid, char *name)
 	start = strchr(line, '(') + 1;
 	end = strrchr(start, ')');
 	num = end - start;
-	strlcpy(name, start, num + 1);
+	libkysdk_strlcpy(name, start, num + 1);
 	fclose(fpprocstat);
 
 	return 0;
@@ -1387,4 +1387,4 @@ inline void kdk_proc_freeall(char **list)
         index ++;
     }
     free(list);
-}
\ No newline at end of file
+}
-- 
2.33.0

