080a160c7b9595d516c9c70e83689a09b60839d0
galt
  Mon Jun 3 12:16:53 2013 -0700
fix SQL Injection
diff --git src/hg/lib/ggDbIo.c src/hg/lib/ggDbIo.c
index 5b27fa9..19c1595 100644
--- src/hg/lib/ggDbIo.c
+++ src/hg/lib/ggDbIo.c
@@ -33,31 +33,31 @@
 
 AllocVar(gg);
 gg->vertices = AllocArray(v, vertexCount);
 gg->vertexCount = vertexCount;
 gg->edgeMatrix = AllocArray(em, vertexCount);
 for (i=0; i<vertexCount; ++i)
     {
     AllocArray(em[i], vertexCount);
     v->position = ag->vPositions[i];
     v->type = ag->vTypes[i];
     ++v;
     }
 for (i=0; i<ag->edgeCount; ++i)
     em[ag->edgeStarts[i]][ag->edgeEnds[i]] = TRUE;
 
-snprintf(gg->strand, sizeof(gg->strand), "%s", ag->strand);
+safef(gg->strand, sizeof(gg->strand), "%s", ag->strand);
 gg->tStart = ag->tStart;
 gg->tEnd = ag->tEnd;
 gg->mrnaRefCount = ag->mrnaRefCount;
 return gg;
 }
 
 struct geneGraph *ggFromRow(char **row)
 /* Create a geneGraph from a row in altGraph table. */
 {
 struct altGraph *ag;
 struct geneGraph *gg;
 
 ag = altGraphLoad(row);
 gg = ggFromAltGraph(ag);
 altGraphFree(&ag);