Index: apps/app_voicemail.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v retrieving revision 1.222 diff -u -r1.222 app_voicemail.c --- apps/app_voicemail.c 11 Jul 2005 23:13:11 -0000 1.222 +++ apps/app_voicemail.c 12 Jul 2005 01:17:05 -0000 @@ -655,7 +655,9 @@ { char buf[255]; snprintf(buf,255,"%s %s %s %s",ext_pass_cmd,vmu->context,vmu->mailbox,newpassword); - ast_safe_system(buf); + if (!ast_safe_system(buf)) + ast_copy_string(vmu->password, newpassword, sizeof(vmu->password)); + } static int make_dir(char *dest, int len, char *context, char *ext, char *mailbox) @@ -5333,7 +5335,7 @@ zonesl = NULL; users = NULL; usersl = NULL; - memset(ext_pass_cmd, 0, sizeof(ext_pass_cmd) - 1); + memset(ext_pass_cmd, 0, sizeof(ext_pass_cmd)); if (cfg) { /* General settings */