~mm-yuhu/gearmand/server-funcs

« back to all changes in this revision

Viewing changes to libgearman/client.c

  • Committer: Brian Aker
  • Date: 2009-12-30 23:57:45 UTC
  • Revision ID: brian@gaz-20091230235745-ozxt22r3z2r17yqg
White space fix/use strncpy to make sure we don't write too much.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1306
1306
  if (ret != GEARMAN_IO_WAIT)
1307
1307
  {
1308
1308
    if (job_handle)
1309
 
      strcpy(job_handle, client->do_task.job_handle);
 
1309
    {
 
1310
      strncpy(job_handle, client->do_task.job_handle, GEARMAN_JOB_HANDLE_SIZE);
 
1311
    }
1310
1312
 
1311
1313
    gearman_task_free(&(client->do_task));
1312
1314
    client->options.task_in_use= false;