Pull up r25605 from trunk
authorTom Yu <tlyu@mit.edu>
Tue, 10 Jan 2012 21:36:47 +0000 (21:36 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 10 Jan 2012 21:36:47 +0000 (21:36 +0000)
 ------------------------------------------------------------------------
 r25605 | ghudson | 2011-12-27 20:31:59 -0500 (Tue, 27 Dec 2011) | 7 lines

 ticket: 7057

 Fix implicit declaration in ksu for some builds

 ksu's setenv implementation needs to include <string.h> for memcpy.
 Patch from basch@alum.mit.edu.

ticket: 7057
version_fixed: 1.10
status: resolved

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-10@25639 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/ksu/setenv.c

index 587005ca608aacbe7faf6ed94a9376847d47eabb..33ac1e3030f52f31977862835c196a645a70a4fa 100644 (file)
@@ -37,6 +37,7 @@
 #include <sys/types.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include "autoconf.h"
 
 static char *_findenv(char *, int *);