~ubuntu-branches/debian/sid/smstools/sid

« back to all changes in this revision

Viewing changes to src/extras.c

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Schoenfeld
  • Date: 2010-07-15 15:29:12 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20100715152912-7do98xn85rzfr4i8
Tags: 3.1.11-1
* New upstream release
* Acknowledge Non-mantainer upload, thanks Jan
* Upgrade to Standards-Version 3.9.0; no changes needed
* Use the new debhelper quilt sequence and simplify rules file this
  way
* Update build-depends for the usage of the quilt dh sequence
* Fix reference to GPL in copyright file
* New maintainer; make myself the maintainer of the package as I've
  been the de-facto maintainer for nearly three years now
* Update Vcs-Headers to reflect the migration to git

Show diffs side-by-side

added added

removed removed

Lines of Context:
412
412
      if ((compare2 && strncmp(line, compare2, hlen2) == 0) ||
413
413
          strncmp(line, compare, hlen) == 0)
414
414
      {
415
 
        cutspaces(memmove(line, line +hlen, strlen(line +hlen) +1));
 
415
        cutspaces(strcpyo(line, line + hlen));
416
416
        if (!strcasecmp(line,"HIGH"))
417
417
          result = 1;
418
418
        else if (yesno(line) == 1)
1376
1376
    sprintf(strchr(*buffer, 0), "%s%s", str, (delimiter) ? delimiter : "");
1377
1377
}
1378
1378
 
 
1379
char *strcpyo(char *dest, const char *src)
 
1380
{
 
1381
  size_t i;
 
1382
 
 
1383
  for (i = 0; src[i] != '\0'; i++)
 
1384
    dest[i] = src[i];
 
1385
 
 
1386
  dest[i] = '\0';
 
1387
 
 
1388
  return dest;
 
1389
}