commit 34bc66f8b926989bb7186d96a8b026f04947bf81
Author: FRIGN <[email protected]>
Date:   Sun Feb 1 03:43:54 2015 +0100

    Return number of bytes read in readrune()
    
    Could be useful in some cases...

diff --git a/libutf/readrune.c b/libutf/readrune.c
index 407182b..8fd003b 100644
--- a/libutf/readrune.c
+++ b/libutf/readrune.c
@@ -42,5 +42,5 @@ readrune(const char *file, FILE *fp, Rune *r)
                        break;
                }
        }
-       return 1;
+       return i;
 }

Reply via email to