Browse Source

fix strncpy typo

master
Pandora 7 years ago
parent
commit
7d21942206
  1. 2
      lock.sh
  2. 16
      lock_bar.sh
  3. 2
      unlock_indicator.c

2
lock.sh

@ -27,7 +27,7 @@ V='#bb00bbbb' # verifying
--keyhlcolor=$W \ --keyhlcolor=$W \
--bshlcolor=$W \ --bshlcolor=$W \
\ \
--screen 0 \ --screen 1 \
--blur 5 \ --blur 5 \
--clock \ --clock \
--indicator \ --indicator \

16
lock_bar.sh

@ -23,11 +23,19 @@ V='#bb00bbbb' # verifying
\ \
--clock \ --clock \
--force-clock \ --force-clock \
--timepos 125:h-110 \ --timepos 5:h-80 \
--timecolor 880088ff \ --timecolor 880088ff \
--datepos 5:ty \ --datepos tx:ty+15 \
--datecolor 770077ff \ --datecolor 990099ff \
--date-align 1 \ --date-align 1 \
--time-align 1 \ --time-align 1 \
--ringvercolor 8800ff88 \ --ringvercolor 8800ff88 \
--ringwrongcolor ff008888 --ringwrongcolor ff008888 \
--statuspos 5:h-16 \
--verif-align 1 \
--wrong-align 1 \
--verifcolor ffffffff \
--wrongcolor ffffffff \
--modifpos -50:-50 \
\
--screen 1

2
unlock_indicator.c

@ -786,7 +786,7 @@ xcb_pixmap_t draw_image(uint32_t *resolution) {
if (layout_text) { if (layout_text) {
draw_data.keylayout_text.show = true; draw_data.keylayout_text.show = true;
strncpy(draw_data.keylayout_text.str, layout_text, sizeof(draw_data.mod_text.str)); strncpy(draw_data.keylayout_text.str, layout_text, sizeof(draw_data.keylayout_text.str));
draw_data.keylayout_text.size = layout_size; draw_data.keylayout_text.size = layout_size;
draw_data.keylayout_text.font = get_font_face(LAYOUT_FONT); draw_data.keylayout_text.font = get_font_face(LAYOUT_FONT);
draw_data.keylayout_text.color = layout16; draw_data.keylayout_text.color = layout16;

Loading…
Cancel
Save