[SCSI] libfc: Register Symbolic Node Name (RSNN_NN)
[linux-2.6-block.git] / drivers / scsi / fcoe / fcoe.c
index f23cdb38d5c3c3d632f69683277b6e4218483335..437eacf2732d74856adf0c659974695f065617d2 100644 (file)
@@ -591,9 +591,9 @@ static int fcoe_shost_config(struct fc_lport *lp, struct Scsi_Host *shost,
        if (!lp->vport)
                fc_host_max_npiv_vports(lp->host) = USHORT_MAX;
 
-       sprintf(fc_host_symbolic_name(lp->host), "%s v%s over %s",
-               FCOE_NAME, FCOE_VERSION,
-               fcoe_netdev(lp)->name);
+       snprintf(fc_host_symbolic_name(lp->host), FC_SYMBOLIC_NAME_SIZE,
+                "%s v%s over %s", FCOE_NAME, FCOE_VERSION,
+                fcoe_netdev(lp)->name);
 
        return 0;
 }