File: 04_get_abs_path

package info (click to toggle)
chntpw 140201-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,160 kB
  • sloc: ansic: 24,950; makefile: 168
file content (13 lines) | stat: -rw-r--r-- 262 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
Description: Fix absolute path
Forwarded: no
Author: Unknown
--- a/ntreg.c
+++ b/ntreg.c
@@ -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);