Skip to content

Commit

Permalink
tool_operate: build on AmigaOS
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-y authored and bagder committed Mar 15, 2019
1 parent 5cf5d57 commit 5c215bd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/tool_operate.c
Expand Up @@ -33,6 +33,10 @@
# include <fabdef.h>
#endif

#ifdef __AMIGA__
# include <proto/dos.h>
#endif

#include "strcase.h"

#define ENABLE_CURLX_PRINTF
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 5c215bd

Please sign in to comment.