summaryrefslogtreecommitdiff
path: root/linenoise.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2013-11-06 08:49:11 +1000
committerSteve Bennett <steveb@workware.net.au>2013-11-06 08:55:15 +1000
commita077f0800f5bbc7ca5f3b368726f7d1757c16549 (patch)
treed1f32c6dfaf29df2cd2a2663ba99537af59b8c26 /linenoise.c
parent91960fb0e584579c5dc25376b5bfba8c6eafa4a3 (diff)
Fix [string tolower] buffer overflow for non-utf8
Reported-by: Andy <jimdevel@hummypkg.org.uk> Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'linenoise.c')
-rw-r--r--linenoise.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/linenoise.c b/linenoise.c
index 63d4899..e805356 100644
--- a/linenoise.c
+++ b/linenoise.c
@@ -717,16 +717,6 @@ static int getWindowSize(struct current *current)
}
#endif
-static int utf8_getchars(char *buf, int c)
-{
-#ifdef USE_UTF8
- return utf8_fromunicode(buf, c);
-#else
- *buf = c;
- return 1;
-#endif
-}
-
/**
* Returns the unicode character at the given offset,
* or -1 if none.