summaryrefslogtreecommitdiff
path: root/user/chntpw/chntpw-140201-get_abs_path.patch
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2020-06-12 23:45:55 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2020-06-12 23:45:55 +0000
commitf25c632def0d17fad7a07d5bebdbb242c5785465 (patch)
treed0cb201ef45a8f8c68e47c5485de82d7d0070ddf /user/chntpw/chntpw-140201-get_abs_path.patch
parent3d6323a05f1465d6845e258d7c4efa841d0b42e7 (diff)
parent8a9860462fd1ae57861b93426c49df0396145832 (diff)
downloadpackages-f25c632def0d17fad7a07d5bebdbb242c5785465.tar.gz
packages-f25c632def0d17fad7a07d5bebdbb242c5785465.tar.bz2
packages-f25c632def0d17fad7a07d5bebdbb242c5785465.tar.xz
packages-f25c632def0d17fad7a07d5bebdbb242c5785465.zip
Merge branch 'chntpw' into 'master'
user/chntpw: new port See merge request adelie/packages!432
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);