]> sjero.net Git - wget/blobdiff - src/utils.c
aprintf is calling memfatal function now instead of calling abort function
[wget] / src / utils.c
index 8c56d4dbf5772ae3f9dbf4e91c5f47960c35dd0c..3fd1435ec20d59326d20078006fbfacb02aeecfb 100644 (file)
@@ -171,7 +171,7 @@ aprintf (const char *fmt, ...)
   ret = vasprintf (&str, fmt, args);
   va_end (args);
   if (ret < 0 && errno == ENOMEM)
-    abort ();                   /* for consistency with xmalloc/xrealloc */
+    memfatal ("aprintf", UNKNOWN_ATTEMPTED_SIZE);  /* for consistency with xmalloc/xrealloc */
   else if (ret < 0)
     return NULL;
   return str;