/*
- * Copyright (C) 2000 Thomas Roessler <roessler@does-not-exist.org>
+ * Copyright (C) 2000-2,2004 Thomas Roessler <roessler@does-not-exist.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
if ((p = strchr (t, ':')))
{
*p++ = '\0';
- ciss->port = atoi (p);
+ if (mutt_atos (p, (short*) &ciss->port) < 0)
+ return NULL;
}
else
ciss->port = 0;
tmp = strchr (src, ':') + 1;
- ciss->path = ciss_parse_userhost (ciss, tmp);
+ if ((ciss->path = ciss_parse_userhost (ciss, tmp)) == NULL)
+ return -1;
url_pct_decode (ciss->path);
return 0;