diff options
Diffstat (limited to 'pith/osdep')
-rw-r--r-- | pith/osdep/creatdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pith/osdep/creatdir.c b/pith/osdep/creatdir.c index 1c3a115e..ac97ac38 100644 --- a/pith/osdep/creatdir.c +++ b/pith/osdep/creatdir.c @@ -89,7 +89,7 @@ create_random_dir(char *dir, size_t len) { int i; char *s = &dir[strlen(dir) - 6]; for(i = 0; i < 10; i++){ - sprintf(s, "%x%x%x", (unsigned int)(random() % 256), (unsigned int)(random() % 256), + sprintf(s, "%02x%02x%02x", (unsigned int)(random() % 256), (unsigned int)(random() % 256), (unsigned int)(random() % 256)); if(our_mkdir(dir, 0700) == 0) return dir; } |