diff options
Diffstat (limited to 'src/menus.c')
-rw-r--r-- | src/menus.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/menus.c b/src/menus.c index 7814771..6e37279 100644 --- a/src/menus.c +++ b/src/menus.c @@ -1913,9 +1913,9 @@ ExecuteFunction(int func, const char *action, Window w, TwmWindow *tmp_win, break; case F_CUT: - strcpy(tmp, action); - strcat(tmp, "\n"); - XStoreBytes(dpy, tmp, (int) strlen(tmp)); + strlcpy(tmp, action, sizeof(tmp)); + strlcat(tmp, "\n", sizeof(tmp)); + XStoreBytes(dpy, tmp, (int)strlen(tmp)); break; case F_CUTFILE: @@ -2312,8 +2312,8 @@ Execute(const char *s) if (update != NULL) { char *dot1; - strcpy(update, display_eqls); - strcat(update, ds); + strlcpy(update, display_eqls, need); + strlcat(update, ds, need); colon = strrchr(update, ':'); dot1 = strchr(colon, '.'); /* first period after colon */ if (dot1 == NULL) |