Diff of /daemon/opd_ibs.c [ecfbcc] .. [74abfb]  Maximize  Restore

Switch to unified view

a/daemon/opd_ibs.c b/daemon/opd_ibs.c
...
...
443
    if (!str)
443
    if (!str)
444
        return -1;
444
        return -1;
445
445
446
    tmp = op_xstrndup(str, strlen(str));
446
    tmp = op_xstrndup(str, strlen(str));
447
    tok1 = strtok_r(tmp, ":", &tok2);
447
    tok1 = strtok_r(tmp, ":", &tok2);
448
  if (tok1) {
448
    *count = strtoul(tok1, &end, 10);
449
     *count = strtoul(tok1, &end, 10);
450
  } else {
451
      fprintf(stderr, "Invalid count specification in %s\n", str);
452
      return -1;
453
  }
449
    if ((end && *end) || *count == 0
454
    if ((end && *end) || *count == 0
450
        || errno == EINVAL || errno == ERANGE) {
455
        || errno == EINVAL || errno == ERANGE) {
451
        fprintf(stderr,"Invalid count (%s)\n", str);
456
        fprintf(stderr,"Invalid count (%s)\n", str);
452
        return -1;
457
        return -1;
453
    }
458
    }

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks