From: Chris Young Date: Sun, 10 Mar 2019 16:13:40 +0000 (+0000) Subject: tool_operate: build on AmigaOS X-Git-Tag: curl-7_64_1~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c215bdbdfde8b2350cdcbac82aae0c914da5314;p=curl tool_operate: build on AmigaOS --- diff --git a/src/tool_operate.c b/src/tool_operate.c index 7f0748753..e1ceabe7a 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -33,6 +33,10 @@ # include #endif +#ifdef __AMIGA__ +# include +#endif + #include "strcase.h" #define ENABLE_CURLX_PRINTF @@ -1866,9 +1870,9 @@ static CURLcode operate_do(struct GlobalConfig *global, #ifdef __AMIGA__ if(!result && outs.s_isreg && outs.filename) { /* Set the url (up to 80 chars) as comment for the file */ - if(strlen(url) > 78) - url[79] = '\0'; - SetComment(outs.filename, url); + if(strlen(urlnode->url) > 78) + urlnode->url[79] = '\0'; + SetComment(outs.filename, urlnode->url); } #endif