aboutsummaryrefslogtreecommitdiffstats
path: root/src/string/str/strset.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/string/str/strset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string/str/strset.c b/src/string/str/strset.c
index ac1d551..a1ff63f 100644
--- a/src/string/str/strset.c
+++ b/src/string/str/strset.c
@@ -33,9 +33,9 @@
*/
char* strset(char* str, int c)
{
- char* s = segment;
+ char* s = str;
while (*s)
*s++ = (char)c;
- return segment;
+ return str;
}