~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/default_modify.c

  • Committer: Brian Aker
  • Date: 2008-09-28 03:20:53 UTC
  • mto: This revision was merged to the branch mainline in revision 413.
  • Revision ID: brian@tangent.org-20080928032053-rclc4iiwmwedsf73
Work on removing GNU specific calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
      }
155
155
 
156
156
      for (; nr_newlines; nr_newlines--)
157
 
        dst_ptr= stpcpy(dst_ptr, NEWLINE);
 
157
        dst_ptr= my_stpcpy(dst_ptr, NEWLINE);
158
158
 
159
159
      /* Skip the section if MY_REMOVE_SECTION was given */
160
160
      if (!in_section || remove_option != MY_REMOVE_SECTION)
161
 
        dst_ptr= stpcpy(dst_ptr, linebuff);
 
161
        dst_ptr= my_stpcpy(dst_ptr, linebuff);
162
162
    }
163
163
    /* Look for a section */
164
164
    if (*src_ptr == '[')
197
197
  {
198
198
    /* New option still remains to apply at the end */
199
199
    if (!remove_option && *(dst_ptr - 1) != '\n')
200
 
      dst_ptr= stpcpy(dst_ptr, NEWLINE);
 
200
      dst_ptr= my_stpcpy(dst_ptr, NEWLINE);
201
201
    dst_ptr= add_option(dst_ptr, option_value, option, remove_option);
202
202
    opt_applied= 1;
203
203
  }
204
204
  for (; nr_newlines; nr_newlines--)
205
 
    dst_ptr= stpcpy(dst_ptr, NEWLINE);
 
205
    dst_ptr= my_stpcpy(dst_ptr, NEWLINE);
206
206
 
207
207
  if (opt_applied)
208
208
  {
232
232
{
233
233
  if (!remove_option)
234
234
  {
235
 
    dst= stpcpy(dst, option);
 
235
    dst= my_stpcpy(dst, option);
236
236
    if (*option_value)
237
237
    {
238
238
      *dst++= '=';
239
 
      dst= stpcpy(dst, option_value);
 
239
      dst= my_stpcpy(dst, option_value);
240
240
    }
241
241
    /* add a newline */
242
 
    dst= stpcpy(dst, NEWLINE);
 
242
    dst= my_stpcpy(dst, NEWLINE);
243
243
  }
244
244
  return dst;
245
245
}