From 152cf6325d3b1b0383d9c36fab9243005e4ea456 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 10 Sep 2008 07:11:45 +0000 Subject: Checked in some grammatical and minor other fixes in the documentation and examples that I found in the FreeBSD ports system. --- docs/examples/fileupload.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs/examples/fileupload.c') diff --git a/docs/examples/fileupload.c b/docs/examples/fileupload.c index cb88ef687..6ed523c36 100644 --- a/docs/examples/fileupload.c +++ b/docs/examples/fileupload.c @@ -27,7 +27,11 @@ int main(void) return 1; /* can't continue */ } - stat("debugit", &file_info); /* to get the file size */ + /* to get the file size */ + if(fstat(fileno(fd), &file_info) != 0) { + + return 1; /* can't continue */ + } curl = curl_easy_init(); if(curl) { -- cgit v1.2.3