From eca117f28afac2ee258d9e9454ff63c6dec5b58f Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 4 Nov 2019 01:34:37 +0100 Subject: int type length specifier, edge case with zero padding and invalid wildcard precision --- extract.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'extract.c') diff --git a/extract.c b/extract.c index 6c571bf..b2a71da 100644 --- a/extract.c +++ b/extract.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/29 00:10:36 by cacharle #+# #+# */ -/* Updated: 2019/10/30 19:42:16 by cacharle ### ########.fr */ +/* Updated: 2019/11/04 01:32:44 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -59,9 +59,8 @@ char *extract_min_width(t_pformat *pformat, char *fmt) char *extract_precision(t_pformat *pformat, char *fmt) { - if (*fmt == 0 || *fmt != '.') + if (*fmt == '\0' || *fmt != '.') return (fmt); - pformat->flags &= ~FLAG_ZERO_PADDING; fmt++; if (*fmt == '*') { -- cgit