diff -adr misc/gopher-3.0.5/gopher-3.0.5/gopherd/ftp.c software/gopher-3.0.5/gopher-3.0.5/gopherd/ftp.c
1810,1811c1810,1811
<      
<      strcpy(tmpName, buf);
---
>      if (strlen(buf) > 256) last=256;
>      strncpy(tmpName, buf,last);
diff -adr misc/gopher-3.0.5/gopher-3.0.5/gopherd/gopherd.c software/gopher-3.0.5/gopher-3.0.5/gopherd/gopherd.c
1279,1280c1279,1280
<           ASKfile = tempnam(NULL, "gdata");
<           Debug("HTTP POST data is in %s\n", ASKfile);
---
>           ASKfile = mkstemp("gdata");
> 	  Debug("HTTP POST data is in %s\n", ASKfile);
1482c1482
< 
---
> 		    int  authlen;
1488c1488,1491
< 		    strcpy(cleartext, authuser);
---
> 		    authlen = strlen(authuser);
> /* its 64 because cleartext has just been declared 64 above */		    
> 		    if (authlen > 64 ) authlen = 64;		      
> 		    strncpy(cleartext, authuser,authlen);
1590c1593
<           ASKfile = tempnam(NULL, "gdata");
---
> 	  ASKfile = mkstemp("gdata");
diff -adr misc/gopher-3.0.5/gopher-3.0.5/object/GSgopherobj.c software/gopher-3.0.5/gopher-3.0.5/object/GSgopherobj.c
2090c2090,2091
< {
---
> {	int pos;
> 
2107c2108,2112
< 
---
> 	  if (strlen(view) > 64) {
> 	    pos = 64;
> 	  } else {
> 	    pos = strlen(view);
> 	  }