diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2016-04-02 16:49:23 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2016-04-02 16:49:23 -0700 |
commit | bd6c38af4d3b71118c8a50b293d5eba10d0c7ec0 (patch) | |
tree | e7b7dce861749b7ddc674623b909119259b87744 /common | |
parent | 75d79e0e3c36a694b48bf341ac50cb860d82cf42 (diff) | |
download | xrdp-proprietary-bd6c38af4d3b71118c8a50b293d5eba10d0c7ec0.tar.gz xrdp-proprietary-bd6c38af4d3b71118c8a50b293d5eba10d0c7ec0.zip |
common: fix warnings
Diffstat (limited to 'common')
-rw-r--r-- | common/os_calls.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index 21577a71..cdd7af1a 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -282,7 +282,7 @@ g_hexdump(char *p, int len) g_printf("%c", (line[i] >= 0x20 && line[i] < 0x7f) ? line[i] : '.'); } - g_writeln(""); + g_writeln("%s", ""); offset += thisline; line += thisline; } @@ -2200,6 +2200,7 @@ g_strdup(const char *in) return p; } + /*****************************************************************************/ /* if in = 0, return 0 else return newly alloced copy of input string * if the input string is larger than maxlen the returned string will be @@ -2231,6 +2232,7 @@ g_strndup(const char *in, const unsigned int maxlen) return p; } + /*****************************************************************************/ int APP_CC g_strcmp(const char *c1, const char *c2) @@ -2253,10 +2255,12 @@ g_strncmp_d(const char *s1, const char *s2, const char delim, int n) char c1; char c2; + c1 = 0; + c2 = 0; while (n > 0) { - c1 = *s1++; - c2 = *s2++; + c1 = *(s1++); + c2 = *(s2++); if ((c1 == 0) || (c1 != c2) || (c1 == delim) || (c2 == delim)) { return c1 - c2; |