Index: uspace/app/bdsh/input.c
===================================================================
--- uspace/app/bdsh/input.c	(revision 0f06dbc9e279a4380434d87575cde2b6424d2b9b)
+++ uspace/app/bdsh/input.c	(revision b67c7d64e02df739bde0adb28c242a4847afbe31)
@@ -134,13 +134,5 @@
 static char *tinput_get_str(tinput_t *ti)
 {
-	char *str;
-
-	str = malloc(STR_BOUNDS(ti->nc) + 1);
-	if (str == NULL)
-		return NULL;
-
-	wstr_to_str(str, STR_BOUNDS(ti->nc) + 1, ti->buffer);
-
-	return str;
+	return wstr_to_astr(ti->buffer);
 }
 
Index: uspace/app/edit/edit.c
===================================================================
--- uspace/app/edit/edit.c	(revision 0f06dbc9e279a4380434d87575cde2b6424d2b9b)
+++ uspace/app/edit/edit.c	(revision b67c7d64e02df739bde0adb28c242a4847afbe31)
@@ -391,10 +391,5 @@
 
 	buffer[nc] = '\0';
-
-	str = malloc(STR_BOUNDS(wstr_length(buffer)) + 1);
-	if (str == NULL)
-		return NULL;
-
-	wstr_to_str(str, STR_BOUNDS(wstr_length(buffer)) + 1, buffer);
+	str = wstr_to_astr(buffer);
 
 	console_set_color(con, COLOR_BLACK, COLOR_WHITE, 0);
