commit 7dfe81d7be63e4cf4cba42a565314b19743d70b4 Author: magnum Date: Thu Aug 23 11:04:44 2012 +0200 loader.c: Bugfix for pwdump files when uid is re-inserted in source. NOTE: This bugfix applies to core 1.7.9.6 too! diff --git a/src/loader.c b/src/loader.c index 883003a..ecfba4f 100644 --- a/src/loader.c +++ b/src/loader.c @@ -296,7 +296,7 @@ static int ldr_split_line(char **login, char **ciphertext, /* Re-introduce the previously removed uid field */ if (source) { int shift = strlen(uid); - memmove(source + shift, source, strlen(source) + 1); + memmove(source + shift + 1, source, strlen(source) + 1); memcpy(source, uid, shift); source[shift] = ':'; }