diff --git a/common/log.h b/common/log.h index 2f8063e1..7545b1f0 100644 --- a/common/log.h +++ b/common/log.h @@ -114,7 +114,7 @@ internal_log_lvl2str(const enum logLevels lvl, char *str); * */ enum logLevels -internal_log_text2level(const char *s); +internal_log_text2level(const char *buf); /** * A function that init our struct that holds all state and diff --git a/genkeymap/genkeymap.c b/genkeymap/genkeymap.c index 03e54d8c..3b654454 100644 --- a/genkeymap/genkeymap.c +++ b/genkeymap/genkeymap.c @@ -136,7 +136,7 @@ int main(int argc, char **argv) fprintf(outf, "[%s]\n", sections[idx]); e.state = states[idx]; - for (i = 8; i <= 137; i++) /* Keycodes */ + for (i = 8; i < 137; i++) /* Keycodes */ { if (is_evdev) e.keycode = xfree86_to_evdev[i-8]; diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c index 90b7ce15..879ef12c 100644 --- a/xrdp/xrdp_wm.c +++ b/xrdp/xrdp_wm.c @@ -913,7 +913,7 @@ xrdp_wm_xor_pat(struct xrdp_wm *self, int x, int y, int cx, int cy) self->painter->brush.pattern[6] = 0xaa; self->painter->brush.pattern[7] = 0x55; self->painter->brush.x_origin = 0; - self->painter->brush.x_origin = 0; + self->painter->brush.y_origin = 0; self->painter->brush.style = 3; self->painter->bg_color = self->black; self->painter->fg_color = self->white;