Index: uspace/lib/c/generic/str.c
===================================================================
--- uspace/lib/c/generic/str.c	(revision ace588af2b019d0ee6e00a5a4491a2c9bf35ae96)
+++ uspace/lib/c/generic/str.c	(revision c065743ae2350a1deb9e86bbb4d701e4a1662258)
@@ -1160,35 +1160,4 @@
 	str_ncpy(dest, size + 1, src, size);
 	return dest;
-}
-
-void str_reverse(char* begin, char* end) 
-{
-    char aux;
-    while(end>begin)
-        aux=*end, *end--=*begin, *begin++=aux;
-}
-
-int size_t_str(size_t value, int base, char* str, size_t size) 
-{
-    static char num[] = "0123456789abcdefghijklmnopqrstuvwxyz";
-    char* wstr=str;
-	
-	if (size == 0) 
-		return EINVAL;
-    if (base<2 || base>35) {
-        *str='\0';
-        return EINVAL;
-    }
-
-    do {
-        *wstr++ = num[value % base];
-		if (--size == 0)
-			return EOVERFLOW;
-    } while(value /= base);
-    *wstr='\0';
-
-    // Reverse string
-    str_reverse(str,wstr-1);
-	return EOK;
 }
 
Index: uspace/lib/c/include/str.h
===================================================================
--- uspace/lib/c/include/str.h	(revision ace588af2b019d0ee6e00a5a4491a2c9bf35ae96)
+++ uspace/lib/c/include/str.h	(revision c065743ae2350a1deb9e86bbb4d701e4a1662258)
@@ -99,7 +99,4 @@
 extern char *str_ndup(const char *, size_t max_size);
 
-extern void str_reverse(char* begin, char* end);
-extern int size_t_str(size_t value, int base, char* str, size_t size);
-
 extern int str_uint64(const char *, char **, unsigned int, bool, uint64_t *);
 extern int str_size_t(const char *, char **, unsigned int, bool, size_t *);
Index: uspace/srv/fs/fat/fat_directory.c
===================================================================
--- uspace/srv/fs/fat/fat_directory.c	(revision ace588af2b019d0ee6e00a5a4491a2c9bf35ae96)
+++ uspace/srv/fs/fat/fat_directory.c	(revision c065743ae2350a1deb9e86bbb4d701e4a1662258)
@@ -44,4 +44,5 @@
 #include <str.h>
 #include <align.h>
+#include <stdio.h>
 
 int fat_directory_block_load(fat_directory_t *);
@@ -347,8 +348,7 @@
 	str_to_ascii(name, lname, name_len, FAT_SFN_CHAR);
 
-	size_t idx;
+	unsigned idx;
 	for (idx=1; idx <= FAT_MAX_SFN; idx++) {
-		if (size_t_str(idx, 10, number, FAT_NAME_LEN-2)!=EOK)
-			return EOVERFLOW;
+		snprintf(number, sizeof(number), "%u", idx);
 
 		/* Fill de->name with FAT_PAD */
