summaryrefslogtreecommitdiff
path: root/user/chntpw/chntpw-140201-get_abs_path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/chntpw/chntpw-140201-get_abs_path.patch')
-rw-r--r--user/chntpw/chntpw-140201-get_abs_path.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/user/chntpw/chntpw-140201-get_abs_path.patch b/user/chntpw/chntpw-140201-get_abs_path.patch
new file mode 100644
index 000000000..c9f1a3dec
--- /dev/null
+++ b/user/chntpw/chntpw-140201-get_abs_path.patch
@@ -0,0 +1,10 @@
+--- chntpw-140201/ntreg.c.orig 2014-02-01 08:54:37.000000000 -0800
++++ chntpw-140201/ntreg.c 2018-07-02 16:10:39.625152640 -0700
+@@ -1511,6 +1511,7 @@
+ }
+
+ strncpy(tmp,path,ABSPATHLEN-1);
++ tmp[ABSPATHLEN-1] = '\0';
+
+ if (key->type & 0x20)
+ keyname = mem_str(key->keyname, key->len_name);