patch-2.1.130 linux/drivers/net/hamradio/soundmodem/sm.c

Next file: linux/drivers/net/rtl8139.c
Previous file: linux/drivers/net/hamradio/hdlcdrv.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.129/linux/drivers/net/hamradio/soundmodem/sm.c linux/drivers/net/hamradio/soundmodem/sm.c
@@ -554,17 +554,17 @@
 		cp = hi->data.modename;
 		while (*hwp) {
 			if ((*hwp)->hw_name)
-				cp += sprintf("%s:,", (*hwp)->hw_name);
+				cp += sprintf(cp, "%s:,", (*hwp)->hw_name);
 			hwp++;
 		}
 		while (*mtp) {
 			if ((*mtp)->name)
-				cp += sprintf(">%s,", (*mtp)->name);
+				cp += sprintf(cp, ">%s,", (*mtp)->name);
 			mtp++;
 		}
 		while (*mrp) {
 			if ((*mrp)->name)
-				cp += sprintf("<%s,", (*mrp)->name);
+				cp += sprintf(cp, "<%s,", (*mrp)->name);
 			mrp++;
 		}
 		cp[-1] = '\0';

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov