staging: dgnc: driver.c: fixes warning about assigning pointer
authorLidza Louina <lidza.louina@gmail.com>
Tue, 20 Aug 2013 18:15:35 +0000 (14:15 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Aug 2013 23:28:40 +0000 (16:28 -0700)
This patch fixes a warning associated with assigining
a pointer in the dgnc_mbuf function.

Signed-off-by: Lidza Louina <lidza.louina@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.c

index e8de7a411255f2d798cedd4ab22b1c44cd44ffc8..e5d021f8bd9612ceb64c5d98efb102cff7ba1758 100644 (file)
@@ -943,7 +943,7 @@ static void dgnc_mbuf(struct board_t *brd, const char *fmt, ...) {
 
        memcpy(brd->msgbuf, buf, strlen(buf));
        brd->msgbuf += strlen(buf);
-       *brd->msgbuf = (char) NULL;
+       *brd->msgbuf = '\0';
 
        DGNC_UNLOCK(dgnc_global_lock, flags);
 }