[gtksourceview/wip/chergert/vim: 227/363] fix boundary check




commit 7b94a8fdddf5f00aa5c3eaf4e46969db1373a373
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]