summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/compat.c b/common/compat.c
index 1255b0e..970e5ed 100644
--- a/common/compat.c
+++ b/common/compat.c
@@ -672,7 +672,7 @@ _gettemp (char *path,
/* Fill space with random characters */
while (trv >= path && *trv == 'X') {
- rnd = rand () % sizeof (padchar) - 1;
+ rnd = rand () % (sizeof (padchar) - 1);
*trv-- = padchar[rnd];
}
start = trv + 1;