Skip to content

Commit 0a66e8c

Browse files
AZero13millert
authored andcommitted
Decrease size, not increase
I believe we mean to decrease size, not increase it.
1 parent da7ef4d commit 0a66e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exec_preload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ fmtstr(sudo_alloc_fn_t alloc_fn, sudo_free_fn_t free_fn, const char * restrict o
145145
goto oflow;
146146
}
147147
*cur++ = *fmt++;
148-
size++;
148+
size--;
149149
}
150150

151151
if (size < 1) {

0 commit comments

Comments
 (0)