/[ipchat]/ipchat/src/parse.c
ViewVC logotype

Diff of /ipchat/src/parse.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by beatk, Mon Mar 21 20:47:21 2005 UTC revision 1.20 by beatk, Fri Mar 25 18:37:47 2005 UTC
# Line 286  command_id (char *str, char (*cl)[MAX_L] Line 286  command_id (char *str, char (*cl)[MAX_L]
286          int ret = ERR_UNK;          int ret = ERR_UNK;
287          char *c;          char *c;
288    
289          c = malloc (strlen (str) * sizeof (char));          c = malloc ((strlen (str) + 1) * sizeof (char));
290          if (c == NULL)          if (c == NULL)
291                  return ERR;                  return ERR;
292    

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26