[gtksourceview/wip/chergert/vim] fix boundary check
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim] fix boundary check
- Date: Tue, 2 Nov 2021 23:10:43 +0000 (UTC)
commit f58b2fb00a3d8fa554b9fd0be4def01ee6253538
Author: Christian Hergert <chergert redhat com>
Date: Tue Nov 2 16:10:37 2021 -0700
fix boundary check
gtksourceview/vim/gtk-source-vim-command.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-command.c b/gtksourceview/vim/gtk-source-vim-command.c
index 3ede431c..a8650a57 100644
--- a/gtksourceview/vim/gtk-source-vim-command.c
+++ b/gtksourceview/vim/gtk-source-vim-command.c
@@ -324,7 +324,7 @@ rot13 (const char *str)
{
gunichar ch = g_utf8_get_char (c);
- if ((ch >= 65 && ch < 90) || (ch >= 97 && ch < 122))
+ if ((ch >= 65 && ch <= 90) || (ch >= 97 && ch <= 122))
{
if (g_ascii_tolower (ch) < 'n')
g_string_append_c (ret, ch + 13);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]