SHA256
1
0
forked from pool/coreutils
coreutils/coreutils-i18n-infloop.patch

15 lines
958 B
Diff

Index: src/sort.c
===================================================================
--- src/sort.c.orig 2011-01-05 14:27:40.227218942 +0100
+++ src/sort.c 2011-01-05 14:27:40.574228931 +0100
@@ -3134,7 +3134,8 @@ keycompare_mb (const struct line *a, con
if (MBLENGTH == (size_t)-2 || MBLENGTH == (size_t)-1) \
STATE = state_bak; \
if (!ignore) \
- COPY[NEW_LEN++] = TEXT[i++]; \
+ COPY[NEW_LEN++] = TEXT[i]; \
+ i++; \
continue; \
} \
\