Skip to content
Browse files

Never point cfg_name to path_expand()'s result buffer, make a copy.

  • Loading branch information...
1 parent 18553ff commit 4ab25da040252d4b1af82d134d750921532deb68 solar committed Oct 3, 2002
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/config.c
  2. +1 −1 src/params.h
View
4 src/config.c
@@ -1,6 +1,6 @@
/*
* This file is part of John the Ripper password cracker,
- * Copyright (c) 1996-2000 by Solar Designer
+ * Copyright (c) 1996-2002 by Solar Designer
*/
#include <stdio.h>
@@ -135,7 +135,7 @@ void cfg_init(char *name, int allow_missing)
if (fclose(file)) pexit("fclose");
- cfg_name = path_expand(name);
+ cfg_name = str_alloc_copy(path_expand(name));
}
static struct cfg_section *cfg_get_section(char *section, char *subsection)
View
2 src/params.h
@@ -15,7 +15,7 @@
/*
* John's version number.
*/
-#define JOHN_VERSION "1.6.32"
+#define JOHN_VERSION "1.6.32.1"
/*
* Is this a system-wide installation? *BSD ports and Linux distributions

0 comments on commit 4ab25da

Please sign in to comment.
Something went wrong with that request. Please try again.