Index: game.c ================================================================== --- game.c +++ game.c @@ -883,11 +883,11 @@ sqlite3_int64 v; if(t==SQLITE_NULL) return; if(dc->flag&1) w=255; if(t==SQLITE_BLOB || t==SQLITE_TEXT) { blob: - i=snprintf(buf,w,"%s",sqlite3_column_text(st,nc)); + if(p=sqlite3_column_text(st,nc)) i=snprintf(buf,w,"%s",p); else *buf=i=0; if(dc->form[0]=='R' && iflag&2) co=0xFF; } else { // This implementation does not check that the format is necessarily valid. // You should not rely on the use of any undocumented format.