View | Details | Raw Unified | Return to bug 46902
Collapse All | Expand All

(-)ctx.c.new Thu Jan 9 20:26:04 2003 (-1 / +1 lines)
Lines 274-280 Link Here
274
int
274
int
275
smb_ctx_setserver(struct smb_ctx *ctx, const char *name)
275
smb_ctx_setserver(struct smb_ctx *ctx, const char *name)
276
{
276
{
277
       if (strlen(name) >= SMB_MAXSRVNAMELEN) {
277
       if (strlen(name) > SMB_MAXSRVNAMELEN) {
278
               smb_error("server name '%s' too long", 0, name);
278
               smb_error("server name '%s' too long", 0, name);
279
               return ENAMETOOLONG;
279
               return ENAMETOOLONG;
280
       }
280
       }

Return to bug 46902