Ticket #99: openvpn-2.2-RC-oldgcc.patch
File openvpn-2.2-RC-oldgcc.patch, 749 bytes (added by , 13 years ago) |
---|
-
openvpn-2.2-RC/plugin/auth-pam/auth-pam.c
old new 119 119 static char * 120 120 searchandreplace(const char *tosearch, const char *searchfor, const char *replacewith) 121 121 { 122 if (!tosearch || !searchfor || !replacewith) return 0;123 if (!strlen(tosearch) || !strlen(searchfor) || !strlen(replacewith)) return 0;124 125 122 const char *searching=tosearch; 126 123 char *scratch; 127 124 char temp[strlen(tosearch)*10]; 128 125 temp[0]=0; 129 126 127 if (!tosearch || !searchfor || !replacewith) return 0; 128 if (!strlen(tosearch) || !strlen(searchfor) || !strlen(replacewith)) return 0; 129 130 130 scratch = strstr(searching,searchfor); 131 131 if (!scratch) return strdup(tosearch); 132 132