You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ri...@apache.org on 2026/04/01 17:58:16 UTC

svn commit: r1932711 - subversion/trunk/subversion/svnbrowse

Author: rinrab
Date: Wed Apr  1 17:58:16 2026
New Revision: 1932711

Log:
svnbrowse: Add parenthesis around ch in the CTRL() macro to avoid potential
issues when expanded.

* subversion/svnbrowse/svnbrowse.c
  (CTRL): Fix macro.

Suggested by: hartmannathan

Modified:
   subversion/trunk/subversion/svnbrowse/svnbrowse.c

Modified: subversion/trunk/subversion/svnbrowse/svnbrowse.c
==============================================================================
--- subversion/trunk/subversion/svnbrowse/svnbrowse.c	Wed Apr  1 17:53:35 2026	(r1932710)
+++ subversion/trunk/subversion/svnbrowse/svnbrowse.c	Wed Apr  1 17:58:16 2026	(r1932711)
@@ -35,7 +35,7 @@
 
 /* Control+ASCII character are represented as values 1-26 according to their
  * alphabetical order. */
-#define CTRL(ch) (ch - 'a' + 1)
+#define CTRL(ch) ((ch) - 'a' + 1)
 
 typedef struct svn_browse__item_t {
   const char *relpath;