summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/debug.c2
-rw-r--r--common/userpref.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/common/debug.c b/common/debug.c
index 0bb87a2..67e2fc2 100644
--- a/common/debug.c
+++ b/common/debug.c
@@ -116,7 +116,7 @@ inline void debug_buffer(const char *data, const int length)
116 fprintf(stderr, " "); 116 fprintf(stderr, " ");
117 continue; 117 continue;
118 } 118 }
119 fprintf(stderr, "%02hhx ", *(data + i + j)); 119 fprintf(stderr, "%02x ", *(data + i + j));
120 } 120 }
121 fprintf(stderr, " | "); 121 fprintf(stderr, " | ");
122 for (j = 0; j < 16; j++) { 122 for (j = 0; j < 16; j++) {
diff --git a/common/userpref.c b/common/userpref.c
index 0e774b7..d363b0e 100644
--- a/common/userpref.c
+++ b/common/userpref.c
@@ -102,6 +102,7 @@ static char *userpref_utf16_to_utf8(wchar_t *unistr, long len, long *items_read,
102} 102}
103#endif 103#endif
104 104
105#ifndef WIN32
105static const char *userpref_get_tmp_dir() 106static const char *userpref_get_tmp_dir()
106{ 107{
107 const char *cdir = getenv("TMPDIR"); 108 const char *cdir = getenv("TMPDIR");
@@ -115,6 +116,7 @@ static const char *userpref_get_tmp_dir()
115 return cdir; 116 return cdir;
116 return "/tmp"; 117 return "/tmp";
117} 118}
119#endif
118 120
119static const char *userpref_get_config_dir() 121static const char *userpref_get_config_dir()
120{ 122{