Index: uspace/app/edit/edit.c
===================================================================
--- uspace/app/edit/edit.c	(revision 0f06dbc9e279a4380434d87575cde2b6424d2b9b)
+++ uspace/app/edit/edit.c	(revision 089d746548cf1ac3708cf3274d20bba32a0efed4)
@@ -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);
