projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libbb: make warning go away
[oweals/busybox.git]
/
libbb
/
platform.c
diff --git
a/libbb/platform.c
b/libbb/platform.c
index ccde2bf02e8b0fe50ddd012cf03e10b49d421ae5..fe7ce156719ae3aeb70f00bc80eb1e87efcf7d82 100644
(file)
--- a/
libbb/platform.c
+++ b/
libbb/platform.c
@@
-134,3
+134,14
@@
char* FAST_FUNC strsep(char **stringp, const char *delim)
return start;
}
#endif
+
+#ifndef HAVE_STPCPY
+char* FAST_FUNC stpcpy(char *p, const char *to_add)
+{
+ while ((*p = *to_add) != '\0') {
+ p++;
+ to_add++;
+ }
+ return p;
+}
+#endif