X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Flinebreak.c;h=09f110cf190a09a15515e250e6246f2699cab502;hb=a6eeca796a39134d0f4ccfee9a29c65312fc0f47;hp=82aba3c84240ea6e017b6d8be877d55199fd52dc;hpb=99099106c3c1cb16ed1e91be970332fe225e278b;p=gnulib.git diff --git a/lib/linebreak.c b/lib/linebreak.c index 82aba3c84..09f110cf1 100644 --- a/lib/linebreak.c +++ b/lib/linebreak.c @@ -1617,6 +1617,7 @@ mbs_width_linebreaks (const char *s, size_t n, xsum4 (xtimes (n, sizeof (size_t)), m, m, (o != NULL ? m : 0)); char *memory = + (char *) (size_in_bounds_p (memory_size) ? malloc (memory_size) : NULL); if (memory != NULL) {