summaryrefslogtreecommitdiff
path: root/src/common/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/string.c')
-rw-r--r--src/common/string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/string.c b/src/common/string.c
index 120fd5d..3825e47 100644
--- a/src/common/string.c
+++ b/src/common/string.c
@@ -20,12 +20,12 @@ char *strcpy(char *dest, const char *src) {
return (char*)src;
}
-/*char *strdup(const char *src) {
+char *strdup(const char *src) {
char* ret = malloc(strlen(src) + 1);
if (ret == NULL) return ret;
strcpy(ret, src);
return ret;
-}*/
+}
char *strcat(char *dest, const char *src) {
char *dest2 = dest;