I'm _almost_ ready to get a good compile of Linux kernel 2.4.33.3 with
all the developerWorks patches integrated.  The last problem is
unresolved references to strcpy in the lcs.c and qeth.c modules.  I've
isolated the problem to a single sprintf command in each of them (out of
_many_ that seem fine).  The following patches seems to fix it.  It
certainly compiles, but I am not sure it is the correct way to go about
it.

--- lcs.c.orig  2006-09-12 15:31:50.000000000 -0400
+++ lcs.c       2006-09-12 16:07:27.000000000 -0400
@@ -1953,7 +1953,7 @@
        struct lcs_card *card;

        LCS_DBF_TEXT(2, trace, "opendev");
-       LCS_DBF_TEXT_(3,trace,"%s",dev->name);
+       LCS_DBF_TEXT_(3,trace,dev->name);
        card = (struct lcs_card *) dev->priv;
        LCS_DBF_HEX(2, trace, &card, sizeof(void*));
        /* initialize statistics */


--- qeth.c.orig 2006-09-12 15:31:50.000000000 -0400
+++ qeth.c      2006-09-12 19:00:27.000000000 -0400
@@ -9037,7 +9037,7 @@
                QETH_DBF_TEXT2(0,setup,dbf_text);

                if (card->portname_required) {
-                       sprintf(dbf_text,"%s",card->options.portname+1);
+                       sprintf(dbf_text,card->options.portname+1);
                        for (i=0;i<8;i++)
 
dbf_text[i]=(char)_ebcasc[(__u8)dbf_text[i]];
                        dbf_text[8]=0;


If someone could confirm or correct these, I would appreciate it.


Thanks in advance,

Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to