]> granicus.if.org Git - curl/commitdiff
tool_operate: build on AmigaOS
authorChris Young <chris@unsatisfactorysoftware.co.uk>
Sun, 10 Mar 2019 16:13:40 +0000 (16:13 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 15 Mar 2019 09:16:33 +0000 (10:16 +0100)
src/tool_operate.c

index 7f0748753384dab2cca9c777d0b149e83df8c63c..e1ceabe7a4fdf837d9ff9789a4df0b4b3c61dc53 100644 (file)
 #  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