... and another :)

SVN revision: 1246
This commit is contained in:
Christian Kreibich 1999-11-11 00:00:56 +00:00
parent 0c7ae75e29
commit e53ba939fd
1 changed files with 2 additions and 2 deletions

View File

@ -1576,7 +1576,7 @@ Epplet_textbox_handle_keyevent(XEvent *ev, Epplet_gadget *gadget)
g->contents = malloc(sizeof(char) * (strlen(s) + 2));
if (g->contents != NULL)
Esnprintf(g->contents, sizeof(g->contents), "%s%c", s, c);
sprintf(g->contents, "%s%c", s, c);
free(s);
}
@ -1585,7 +1585,7 @@ Epplet_textbox_handle_keyevent(XEvent *ev, Epplet_gadget *gadget)
g->contents = malloc(2);
if (g->contents != NULL)
Esnprintf(g->contents, sizeof(g->contents), "%s", TheKey);
sprintf(g->contents, "%s", TheKey);
}
if (g->cursor_pos <= g->w)