浏览代码

Fix a stupid bug.

Manuel Novoa III 21 年之前
父节点
当前提交
f9d08b172a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      libc/misc/locale/locale.c

+ 1 - 0
libc/misc/locale/locale.c

@@ -110,6 +110,7 @@ static __inline char *human_readable_locale(int category, const unsigned char *s
 
  SKIP:
 	i = (category == LC_ALL) ? 0 : category;
+	s += 2*i;
 	n = hr_locale;
 
 	do {