add strcpy() to afs_util.c for OpenBSD 3.3.
Please don't look at my previous attempt to fix this.
/* str */
#define afs_strcasecmp(s1, s2) strncasecmp((s1), (s2), 65535)
#ifdef AFS_OBSD34_ENV
-#define strcpy(s1, s2) strncpy((s1), (s2), 65535)
+#define strcpy(s1, s2) afs_strcpy((s1), (s2))
#else
#define afs_strcat(s1, s2) strcat((s1), (s2))
#endif
#ifndef afs_strcat
extern char *afs_strcat(char *s1, char *s2);
#endif
+#ifdef AFS_OBSD34_ENV
+extern char *afs_strcpy(char *s1, char *s2);
+#endif
#ifndef afs_strchr
extern char *afs_strchr(char *s, int c);
#endif
}
#endif
+#ifdef AFS_OBSD34_ENV
+char *afs_strcpy(char *s1, char *s2)
+{
+ char *os1;
+
+ os1 = s1;
+ while ((*s1++ = *s2++) != '\0')
+ ;
+ return os1;
+}
+#endif
+
#ifndef afs_strchr
char *afs_strchr(char *s, int c)
{