summaryrefslogtreecommitdiff
path: root/src/tool_operate.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2019-03-10 16:13:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2019-03-15 10:16:33 +0100
commit5c215bdbdfde8b2350cdcbac82aae0c914da5314 (patch)
treedd84721502fa859516641b9a1b0449274595d83e /src/tool_operate.c
parent5cf5d57ab9f9d0878c2116d8407bf060616f9950 (diff)
downloadcurl-5c215bdbdfde8b2350cdcbac82aae0c914da5314.tar.gz
tool_operate: build on AmigaOS
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r--src/tool_operate.c10
1 files changed, 7 insertions, 3 deletions
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 <fabdef.h>
#endif
+#ifdef __AMIGA__
+# include <proto/dos.h>
+#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