Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gdtoa/g_ffmt.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/gdtoa/g_ffmt.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- src/lib/libc/gdtoa/g_ffmt.c 2006/01/25 15:18:44 1.1 +++ src/lib/libc/gdtoa/g_ffmt.c 2008/03/21 23:13:48 1.2 @@ -1,4 +1,4 @@ -/* $NetBSD: g_ffmt.c,v 1.1 2006/01/25 15:18:44 kleink Exp $ */ +/* $NetBSD: g_ffmt.c,v 1.2 2008/03/21 23:13:48 christos Exp $ */ /**************************************************************** @@ -86,5 +86,7 @@ g_ffmt(char *buf, float *f, int ndig, un } i = STRTOG_Normal; s = gdtoa(&fpi, ex, bits, &i, mode, ndig, &decpt, &se); + if (s == NULL) + return NULL; return g__fmt(buf, s, se, decpt, sign); }