summaryrefslogtreecommitdiff
path: root/legacy/embryo/src/lib/embryo_str.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-01-08 08:57:00 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-01-08 08:57:00 +0000
commitf505f667cdb84b9766d2a22697c182439f2ac00a (patch)
tree5ab6c8ac1185bb810be6e1f9247270b5c98e72ff /legacy/embryo/src/lib/embryo_str.c
parentbe4cf07d8adf08a9b01860a7915e0067062a4c87 (diff)
atoi booboo - accepts 1, not 2 params! :)
SVN revision: 12824
Diffstat (limited to '')
-rw-r--r--legacy/embryo/src/lib/embryo_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/embryo/src/lib/embryo_str.c b/legacy/embryo/src/lib/embryo_str.c
index 2f460f3ab7..d98adefe12 100644
--- a/legacy/embryo/src/lib/embryo_str.c
+++ b/legacy/embryo/src/lib/embryo_str.c
@@ -24,7 +24,7 @@ _embryo_str_atoi(Embryo_Program *ep, Embryo_Cell *params)
24 char *s1; 24 char *s1;
25 25
26 /* params[1] = str */ 26 /* params[1] = str */
27 if (params[0] != (2 * sizeof(Embryo_Cell))) return 0; 27 if (params[0] != (1 * sizeof(Embryo_Cell))) return 0;
28 STRGET(ep, s1, params[1]); 28 STRGET(ep, s1, params[1]);
29 if (!s1) return 0; 29 if (!s1) return 0;
30 return (Embryo_Cell)atoi(s1); 30 return (Embryo_Cell)atoi(s1);