chiark / gitweb /
Fix page number printing bug
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 26 Jun 2009 22:58:02 +0000 (23:58 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 26 Jun 2009 22:58:02 +0000 (23:58 +0100)
pctb/pages.c

index 8914bd6..80f176a 100644 (file)
@@ -322,7 +322,8 @@ static void wait_for_stability(Snapshot **output,
   /* waits longer if we're going to return an image identical to previously
    * if previously==0, all images are considered identical to it */
 
-  char *doing= masprintf(fmt,al);
+  char *doing;
+  sysassert( vasprintf(&doing,fmt,al) >=0 );
   progress("%s",doing);
 
   debugf("PAGING  wait_for_stability"