diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-07-12 21:11:10 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-07-12 21:11:10 +0000 |
commit | 49ce3e5160a9576e797bf87cef012b09d1c54ecb (patch) | |
tree | 9b8e476de272cfd92bb3d857aa3c6eef273140b7 /docs/examples/cookie_interface.c | |
parent | 4a728747e6f8845e500910e397dfc99aaf4a7984 (diff) | |
download | curl-49ce3e5160a9576e797bf87cef012b09d1c54ecb.tar.gz |
Fixed some compile warnings and errors and improved portability in the
examples.
Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers
any longer.
Diffstat (limited to 'docs/examples/cookie_interface.c')
-rw-r--r-- | docs/examples/cookie_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/cookie_interface.c b/docs/examples/cookie_interface.c index d184edb54..a39106e34 100644 --- a/docs/examples/cookie_interface.c +++ b/docs/examples/cookie_interface.c @@ -74,7 +74,7 @@ main(void) #define snprintf _snprintf #endif /* Netscape format cookie */ - snprintf(nline, 256, "%s\t%s\t%s\t%s\t%u\t%s\t%s", + snprintf(nline, sizeof(nline), "%s\t%s\t%s\t%s\t%u\t%s\t%s", ".google.com", "TRUE", "/", "FALSE", time(NULL) + 31337, "PREF", "hello google, i like you very much!"); res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline); if (res != CURLE_OK) { @@ -83,7 +83,7 @@ main(void) } /* HTTP-header style cookie */ - snprintf(nline, 256, + snprintf(nline, sizeof(nline), "Set-Cookie: OLD_PREF=3d141414bf4209321; " "expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com"); res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, nline); |