diff options
| author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-09 11:42:14 -0700 | 
|---|---|---|
| committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-09 11:42:14 -0700 | 
| commit | 22750c5853698817278cef512d253175ccc08c56 (patch) | |
| tree | 106dad9ae02c2d24632868062b9004fcf812e1bc /web/web_control.c | |
| parent | 4dbcd4a1b703d8b0ee822914ecb6e55d9e9bb37c (diff) | |
| download | dartboat-22750c5853698817278cef512d253175ccc08c56.tar.gz dartboat-22750c5853698817278cef512d253175ccc08c56.tar.xz | |
web: fix memory bugs
Diffstat (limited to 'web/web_control.c')
| -rw-r--r-- | web/web_control.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/web/web_control.c b/web/web_control.c index 0c2d4bd..0c220a5 100644 --- a/web/web_control.c +++ b/web/web_control.c @@ -203,7 +203,7 @@ void user_undo()  	struct leg *l = state->active_leg;  	struct visit *v = l->visits + --l->n_visits;  	l->rem += v->points; -	memcpy(v, 0, sizeof(*v)); +	memset(v, 0, sizeof(*v));  	if (state->mode == M_PVC && state->legs[1]->n_visits > l->n_visits) {  		struct leg *bl = state->legs[1]; | 
