~ubuntu-branches/ubuntu/breezy/pam/breezy

« back to all changes in this revision

Viewing changes to debian/patches/024_pam_env_fix

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-06-28 14:28:08 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040628142808-adikk7vtfg3pzcjw
Tags: 0.76-22
* Add uploaders
* Document location of repository
* Fix options containing arguments in pam_unix, Closes: #254904

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- Linux-PAM-0.72.orig/modules/pam_env/pam_env.c       Wed Feb  7 23:28:22 2001
2
 
+++ Linux-PAM-0.72/modules/pam_env/pam_env.c    Wed Feb  7 23:51:10 2001
3
 
@@ -539,7 +539,7 @@
4
 
                        * much easier this way */
5
 
 
6
 
   D(("Remember to initialize tmp!"));
7
 
-  tmp[0] = '\0';
8
 
+  memset(tmp,'\0',sizeof(tmp));
9
 
 
10
 
   /* 
11
 
    * (possibly non-existent) environment variables can be used as values
12
 
@@ -643,7 +643,6 @@
13
 
     }
14
 
   }
15
 
   strcpy(*value, tmp);
16
 
-  memset(tmp,'\0',sizeof(tmp));
17
 
   D(("Exit."));
18
 
 
19
 
   return PAM_SUCCESS;