summaryrefslogtreecommitdiffstats
path: root/core/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/unix.c')
-rw-r--r--core/unix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/unix.c b/core/unix.c
index a867d5013..5106278a2 100644
--- a/core/unix.c
+++ b/core/unix.c
@@ -60,8 +60,7 @@ void subsurface_user_info(struct user_info *user)
struct membuffer mb = {};
gethostname(hostname, sizeof(hostname));
put_format(&mb, "%s@%s", username, hostname);
- mb_cstring(&mb);
- user->email = detach_buffer(&mb);
+ user->email = detach_cstring(&mb);
}
}