summaryrefslogtreecommitdiff
path: root/legacy/embryo/src/lib/embryo_str.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-05-14 06:10:58 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-05-14 06:10:58 +0000
commit2c60edf6121c971f75c45e1c45796535cd000500 (patch)
tree200657828eb1afa24491f008618bf00fae4ba525 /legacy/embryo/src/lib/embryo_str.c
parentdb311f0b055d8560cc2f86f72eebd5ad550213f4 (diff)
fix %% in snprintf
SVN revision: 34564
Diffstat (limited to '')
-rw-r--r--legacy/embryo/src/lib/embryo_str.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/legacy/embryo/src/lib/embryo_str.c b/legacy/embryo/src/lib/embryo_str.c
index fb31271284..2ed03c7a75 100644
--- a/legacy/embryo/src/lib/embryo_str.c
+++ b/legacy/embryo/src/lib/embryo_str.c
@@ -297,6 +297,7 @@ _embryo_str_snprintf(Embryo_Program *ep, Embryo_Cell *params)
297 } 297 }
298 inesc = 0; 298 inesc = 0;
299 } 299 }
300 if ((insub) && (s1[i] == '%')) pnum++;
300 if ((insub) && (p < pnum)) 301 if ((insub) && (p < pnum))
301 { 302 {
302 switch (s1[i]) 303 switch (s1[i])