In some cases only one bitmap is found when pbm2bm builds the list of free bitmaps. Unfortunately the next bitmap pointer doesn't get initialized in that case causing a crash. This patch ensures that the next free bitmap pointer is always initialized. -- John Wehle ------------------8<------------------------8<------------------------ *** pbm2cl.c.ORIGINAL Wed Jan 29 07:53:04 2003 --- pbm2cl.c Tue Apr 29 18:15:29 2008 *************** int pbm2bm(char *f,int reset) *** 1047,1057 **** /* build list of free bitmaps */ for (i=j=0, la=-1; i<abs; ++i) { if (ab[i].x < 0) { if (la < 0) la = j = i; else { ab[j].y = i; - ab[i].y = -1; j = i; } } --- 1047,1057 ---- /* build list of free bitmaps */ for (i=j=0, la=-1; i<abs; ++i) { if (ab[i].x < 0) { + ab[i].y = -1; if (la < 0) la = j = i; else { ab[j].y = i; j = i; } }