Commit 1ca1d276 authored by Claes Sjofors's avatar Claes Sjofors

strcpy using the same in and output string doesn't work in 64 bit

parent 22d7a5db
......@@ -47,11 +47,14 @@ int CnvCtx::remove_spaces(
const char *in,
char *out)
{
char *s;
char *s, *s1;
for ( s = (char *)in; !((*s == 0) || ((*s != ' ') && (*s != 9))); s++);
strcpy( out, s);
// strcpy( out, s);
for ( s1 = out; *s; s++,s1++)
*s1 = *s;
*s1 = 0;
s = out;
if ( strlen(s) != 0) {
......
......@@ -1052,7 +1052,7 @@ int dcli_trim( char *out_str, char *in_str)
int dcli_remove_blank( char *out_str, char *in_str)
{
char *s;
char *s, *s1;
s = in_str;
/* Find first not blank */
......@@ -1062,7 +1062,11 @@ int dcli_remove_blank( char *out_str, char *in_str)
break;
s++;
}
strcpy( out_str, s);
/* strcpy( out_str, s); */
for ( s1 = out_str; *s; s++,s1++)
*s1 = *s;
*s1 = 0;
/* Remove at end */
s = out_str + strlen(out_str);
s--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment