Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_desklock.c Log Message: Remove const on variable which will be modified. Remove double looping. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_desklock.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- e_desklock.c 21 Aug 2006 15:34:12 -0000 1.22 +++ e_desklock.c 21 Aug 2006 16:00:43 -0000 1.23 @@ -67,7 +67,7 @@ #ifdef HAVE_PAM static int _e_desklock_cb_exit(void *data, int type, void *event); -static int _desklock_auth(const char *passwd); +static int _desklock_auth(char *passwd); static int _desklock_pam_init(E_Desklock_Auth *da); static int _desklock_auth_pam_conv(int num_msg, const struct pam_message **msg, struct pam_response **resp, void *appdata_ptr); static char *_desklock_auth_get_current_user(void); @@ -569,7 +569,7 @@ } static int -_desklock_auth(const char *passwd) +_desklock_auth(char *passwd) { if ((_e_desklock_child_pid = fork())) { @@ -599,12 +599,7 @@ strncpy(da.user, current_user, PATH_MAX); strncpy(da.passwd, passwd, PATH_MAX); /* security - null out passwd string once we are done with it */ - for (p = (char *)passwd; *p; p++); - while (p >= passwd) - { - *p = 0; - p--; - } + for (p = passwd; *p; p++) *p = 0; da.pam.handle = NULL; da.pam.conv.conv = NULL; da.pam.conv.appdata_ptr = NULL; ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs