diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2022-02-06 16:04:24 +0100 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2022-02-06 16:04:24 +0100 | 
| commit | 5d2c2b27a6323e2666378b986129b2a7c2c39e5c (patch) | |
| tree | ce8982b6c0111f79791068de2c2d4c6ce3138a49 /app/bin/file2uri.c | |
| parent | b623f5953691b2a0614e6f1f4def86bdbb9a4113 (diff) | |
New upstream version 5.2.2GAupstream/5.2.2GA
Diffstat (limited to 'app/bin/file2uri.c')
| -rw-r--r-- | app/bin/file2uri.c | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/app/bin/file2uri.c b/app/bin/file2uri.c index a9d8f4f..dd690cc 100644 --- a/app/bin/file2uri.c +++ b/app/bin/file2uri.c @@ -20,9 +20,7 @@    *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.    */ -#include <string.h> -#include <stdio.h> -#include "wlib.h" +#include "common.h"  static char *reservedChars = "?#[]@!$&'()*+,;= "; @@ -51,7 +49,7 @@ File2URI(char *fileName, unsigned resultLen, char *resultBuffer)  	}  	*currentDest = '\0'; -	return(strlen(resultBuffer)); +	return((unsigned)strlen(resultBuffer));  }  unsigned  @@ -79,5 +77,5 @@ URI2File(char *encodedFileName, unsigned resultLen, char *resultBuffer)  		}  	}  	*currentDest = '\0'; -	return(strlen(resultBuffer)); +	return((unsigned)strlen(resultBuffer));  } | 
