Fossil SCM
Replace an mprintf() with fossil_strdup().
Commit
73a2bd06b1ff70c94d6cf61f00ce80ae1f76bda4e5ae9826909adc24c6fd91e1
Parent
a62ffc192289b90…
1 file changed
+1
-1
+1
-1
| --- src/http.c | ||
| +++ src/http.c | ||
| @@ -636,11 +636,11 @@ | ||
| 636 | 636 | }else if( fossil_strnicmp(&zLine[14], "application/x-fossil", -1)!=0 ){ |
| 637 | 637 | isError = 1; |
| 638 | 638 | } |
| 639 | 639 | } |
| 640 | 640 | }else if( fossil_strnicmp(zLine, "x-fossil-xfer-login: ", 21)==0 ){ |
| 641 | - g.zLoginCard = mprintf("%s", &zLine[21]); | |
| 641 | + g.zLoginCard = fossil_strdup(&zLine[21]); | |
| 642 | 642 | } |
| 643 | 643 | } |
| 644 | 644 | if( iHttpVersion<0 ){ |
| 645 | 645 | /* We got nothing back from the server. If using the ssh: protocol, |
| 646 | 646 | ** this might mean we need to add or remove the PATH=... argument |
| 647 | 647 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -636,11 +636,11 @@ | |
| 636 | }else if( fossil_strnicmp(&zLine[14], "application/x-fossil", -1)!=0 ){ |
| 637 | isError = 1; |
| 638 | } |
| 639 | } |
| 640 | }else if( fossil_strnicmp(zLine, "x-fossil-xfer-login: ", 21)==0 ){ |
| 641 | g.zLoginCard = mprintf("%s", &zLine[21]); |
| 642 | } |
| 643 | } |
| 644 | if( iHttpVersion<0 ){ |
| 645 | /* We got nothing back from the server. If using the ssh: protocol, |
| 646 | ** this might mean we need to add or remove the PATH=... argument |
| 647 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -636,11 +636,11 @@ | |
| 636 | }else if( fossil_strnicmp(&zLine[14], "application/x-fossil", -1)!=0 ){ |
| 637 | isError = 1; |
| 638 | } |
| 639 | } |
| 640 | }else if( fossil_strnicmp(zLine, "x-fossil-xfer-login: ", 21)==0 ){ |
| 641 | g.zLoginCard = fossil_strdup(&zLine[21]); |
| 642 | } |
| 643 | } |
| 644 | if( iHttpVersion<0 ){ |
| 645 | /* We got nothing back from the server. If using the ssh: protocol, |
| 646 | ** this might mean we need to add or remove the PATH=... argument |
| 647 |