shell: allocate enough memory for shsurf->ping_timer
diff --git a/src/shell.c b/src/shell.c
index 9c844b5..2001133 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -447,7 +447,7 @@
 		return;
 
 	if (!shsurf->ping_timer) {
-		shsurf->ping_timer = malloc(sizeof shsurf->ping_timer);
+		shsurf->ping_timer = malloc(sizeof *shsurf->ping_timer);
 		if (!shsurf->ping_timer)
 			return;