Fix implicit declaration in ksu for some builds
authorTom Yu <tlyu@mit.edu>
Tue, 10 Jan 2012 23:33:39 +0000 (23:33 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 10 Jan 2012 23:33:39 +0000 (23:33 +0000)
Pull up r25605 from trunk

 ------------------------------------------------------------------------
 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: 7068
version_fixed: 1.9.3
status: resolved

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

src/clients/ksu/setenv.c

index 6e8710df62eb67953c68b91dbbfaea145ef553b9..cbc1ab99ae3e7b26935209cac6ed6b400d014520 100644 (file)
@@ -21,6 +21,7 @@
 #include <sys/types.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include "autoconf.h"
 
 static char *_findenv(char *, int *);