Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2007-09-17 14:26:09 +0400
committerAndrea Weikert <elubie@gmx.net>2007-09-17 14:26:09 +0400
commit8bfbccb3292d3a6a5c182768c91ae293906f09d4 (patch)
treeb72a1e3ce5f43815d8f6e7465330c0a985d35d7f /source/blender/imbuf/intern/thumbs.c
parent672a66905b0aca8a7099de3743d1e42059c4fc98 (diff)
thumbs.c: warning fixes
filelist.c: warning fixes
Diffstat (limited to 'source/blender/imbuf/intern/thumbs.c')
-rw-r--r--source/blender/imbuf/intern/thumbs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c
index 944abb6968c..c2e30b091c2 100644
--- a/source/blender/imbuf/intern/thumbs.c
+++ b/source/blender/imbuf/intern/thumbs.c
@@ -48,6 +48,7 @@
#include <shlobj.h> /* for SHGetSpecialFolderPath, has to be done before BLI_winstuff because 'near' is disabled through BLI_windstuff */
#include "BLI_winstuff.h"
#include <process.h> /* getpid */
+#include <direct.h> /* chdir */
#else
#include <unistd.h>
#endif
@@ -64,8 +65,6 @@
static int get_thumb_dir( char* dir , ThumbSize size)
{
- char* home;
-
#ifdef WIN32
/* yes, applications shouldn't store data there, but so does GIMP :)*/
SHGetSpecialFolderPath(0, dir, CSIDL_PROFILE, 0);
@@ -120,7 +119,7 @@ static const unsigned char acceptable[96] = {
0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x20,0x20,0x20,0x3F,0x20
};
-static const char hex[16] = "0123456789abcdef";
+static const char hex[17] = "0123456789abcdef";
/* Note: This escape function works on file: URIs, but if you want to
* escape something else, please read RFC-2396 */
@@ -180,7 +179,7 @@ static int uri_from_filename( const char *dir, const char *file, char *uri )
return 0;
}
/* on windows, using always uppercase drive/volume letter in uri */
- vol[0] = toupper(dir[0]);
+ vol[0] = (unsigned char)toupper(dir[0]);
vol[1] = ':';
vol[2] = '\0';
strcat(orig_uri, vol);