diff -ur chntpw-080526/ntreg.c chntpw-080526.keyname/ntreg.c --- chntpw-080526/ntreg.c 2008-05-26 20:59:44.000000000 +0100 +++ chntpw-080526.keyname/ntreg.c 2009-06-08 12:00:00.000000000 +0100 @@ -2607,7 +2607,6 @@ int count = 0; int countri = 0; int len, byte; - char keyname[128]; char path[1024]; char *value; struct nk_key *key; @@ -2626,10 +2625,6 @@ // get the key key = (struct nk_key *)(hdesc->buffer + nkofs); - strncpy(keyname, key->keyname, key->len_name); - keyname[key->len_name] = '\0'; - printf("Exporting key '%s' with %d subkeys and %d values...\n", - keyname, key->no_subkeys, key->no_values); *path = 0; get_abs_path(hdesc, nkofs, path, 1024);