--- samba-3.0.28.ORIG/source/client/mount.cifs.c 2007-11-15 04:15:03.000000000 +0100 +++ samba-3.0.28/source/client/mount.cifs.c 2008-02-08 17:08:44.000000000 +0100 @@ -169,7 +169,7 @@ /* go past equals sign */ temp_val++; for(length = 0;length<4087;length++) { - if(temp_val[length] == '\n') + if(temp_val[length] == '\n' || temp_val[length] == '\0') break; } if(length > 4086) { @@ -193,7 +193,7 @@ /* go past equals sign */ temp_val++; for(length = 0;length<65;length++) { - if(temp_val[length] == '\n') + if(temp_val[length] == '\n' || temp_val[length] == '\0') break; } if(length > 64) { @@ -222,7 +222,7 @@ if(verboseflag) printf("\nDomain %s\n",temp_val); for(length = 0;length<65;length++) { - if(temp_val[length] == '\n') + if(temp_val[length] == '\n' || temp_val[length] == '\0') break; } if(length > 64) {