{
#define OPEP "lvleml.c:get_auth_plain,"
+
char *decoded;
-char local[200];
decoded=(char *)0;
-(void) memset(local,'\000',sizeof(local));
-(void) strncpy(local,received,sizeof(local)-1);
-if (strlen(local)==0) {
+if ((received==(char *)0)||(strlen(received)==0)) {
char *line;
int got;
got=tcp_getline(contact->socptr,delay,&line);
if (got>0) {
(void) log_fprintlog(contact->logptr,false,"%s",line);
- (void) strncpy(local,line,sizeof(local)-1);
+ decoded=cnv_getb64(line);
line=rou_freestr(line);
}
}
-if (strlen(local)>0)
- decoded=cnv_getb64(local);
+else
+ decoded=cnv_getb64(received);
return decoded;
#undef OPEP