X-Git-Url: https://git.infodrom.org/?p=infodrom%2Fdtaus;a=blobdiff_plain;f=bigint.c;h=38511aa64332b8fdf7e87034a1f8f4833d049c8d;hp=059c71b891aafd1bb644eabc2ff551db6eae573f;hb=eab76c4e4acff9dfaa51a1640f9d25b3d5065d6d;hpb=4acdfcc0cb7e915dc160914cbebb2b154b0796b8 diff --git a/bigint.c b/bigint.c index 059c71b..38511aa 100644 --- a/bigint.c +++ b/bigint.c @@ -1,6 +1,6 @@ /* bigint.c - Manage big positive integer numbers - Copyright (c) 1996 Martin Schulze + Copyright (c) 1996,2001 Martin Schulze This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -95,7 +95,7 @@ void bigint_sprintf (char *res, char *format, bigint a) char form[6]; int i, max; - bzero(s, sizeof(s)); + memset (s, 0, sizeof(s)); sprintf(form, "%%0%dlu", BIGINT_PREC); max = BIGINT_LEN; for (;max>0 && !a.val[max-1];max--);