openbsd-ports/sysutils/e2fsprogs/patches/patch-tests_progs_random_exercise_c
sthen f25ae53bd7 fix format strings for mktemp(1)/mkstemp(3); mostly not enough X's, also one
case of using X's in the middle of the name ($test_name.XXXXXX.tmp) which is
a non-portable extension handled by gnu mktemp(1)
2014-04-30 12:38:55 +00:00

13 lines
405 B
Plaintext

$OpenBSD: patch-tests_progs_random_exercise_c,v 1.1 2014/04/30 12:38:55 sthen Exp $
--- tests/progs/random_exercise.c.orig Wed Apr 30 10:20:57 2014
+++ tests/progs/random_exercise.c Wed Apr 30 10:22:07 2014
@@ -71,7 +71,7 @@ unsigned int get_inode_num(int fd)
void create_random_file()
{
- char template[16] = "EX.XXXXXX";
+ char template[16] = "EX.XXXXXXXXXX";
int fd;
int isdir = 0;
int size;